[FFmpeg-devel] fix SDL device on MacOS

Michael Niedermayer michaelni at gmx.at
Thu Jan 30 01:33:56 CET 2014


On Wed, Jan 29, 2014 at 10:30:29AM +0100, Lukasz M wrote:
> On 29 January 2014 04:49, Michael Niedermayer <michaelni at gmx.at> wrote:
> 
> > On Tue, Jan 14, 2014 at 11:23:31PM +0100, Nicolas George wrote:
> > > Le quintidi 25 nivôse, an CCXXII, Lukasz M a écrit :
> > > > I found solution here:
> > > >
> > http://forums.libsdl.org/viewtopic.php?p=26230&sid=6ba7f9f0e12717d9ded502bf89dc5be2
> > > >
> > > > "I think the problem is that main is declared before SDL.h is
> > included, you
> > > > should include SDL before main so that SDL substitutes main() with
> > > > SDL_main() and does it's internal initializations. You should also link
> > > > with SDLmain."
> > > > It solves the problem.
> > >
> > > That means SDL will work from ffmpeg, the command-line tool, but not from
> > > any other application built around lavd. I hope there is a better
> > solution.
> >
> > so what should we do about this patch ?
> > should i apply it or not ?
> >
> >
> > Iam no SDL guru so i am not in a position to decide if theres a better
> > solution ...
> >
> > mplayer also seems to have some similar code in mplayer.c
> >
> 
> I not a guru neither. I wanted to get back to it but
> 1. not in short time
> 2. Can't promise there is better/any other solution

that leaves open the question if i should apply the patch in the
meantime
anyway has any oppinon on that ?

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Those who are best at talking, realize last or never when they are wrong.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20140130/8a1eb330/attachment.asc>


More information about the ffmpeg-devel mailing list