[FFmpeg-devel] [ffplay.c] do we need a lock for is->refresh
Marton Balint
cus at passwd.hu
Wed Mar 21 22:59:24 CET 2012
On Wed, 21 Mar 2012, REN Lifeng wrote:
> Both refresh_thread and the main thread (event_loop) may modify
> is->refresh. So, do we need a mutex?
No, I think we don't, because refresh thread is only setting it from 0 to
1, event loop is only setting it from 1 to 0.
Regards,
Marton
>
> I do not see any bug been triggered by it, though.
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
More information about the ffmpeg-devel
mailing list