[FFmpeg-devel] [PATCH 2/2] ffplay: fix missing blue channel when switching from/to fullscren on OSX and libsdl 1.2.14. Fixes issue 548

Jean First jeanfirst at gmail.com
Wed Oct 19 15:05:44 CEST 2011


On Wed Oct 19 2011 14:52:53 GMT+0200 (CEST), Carl Eugen Hoyos wrote:
> Jean First<jeanfirst<at>  gmail.com>  writes:
>
>> +#if defined(__APPLE__)&&  SDL_VERSION_ATLEAST(1, 2, 14)
>> +    /* OSX needs to empty the picture_queue */
>> +    free_all_pictures(is);
>> +#else
>>       video_open(is);
>> +#endif
> Does it work on OS X if you instead do
>      free_all_pictures(is);
>      video_open(is);
> ?

I tried a lot of combinations and none of them worked.

When calling free_all_pictures(is), the YUVOverlay is destroyed.
Then queue_picture (another thread) can't fint the YUVOverlay and sends 
a ALLOC_EVENT. The ALLOC_EVENT then triggers video_open(is) and 
alloc_picture(is);

jean


More information about the ffmpeg-devel mailing list