[FFmpeg-devel] [PATCH 2/2] ffplay: reque attached pictures on channel changes.

Michael Niedermayer michaelni at gmx.at
Wed Aug 15 03:44:34 CEST 2012


On Tue, Aug 14, 2012 at 11:25:07PM +0200, Marton Balint wrote:
> 
> 
> On Tue, 14 Aug 2012, Michael Niedermayer wrote:
> 
> >Fixes Ticket1473
> >
> >Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> >---
> >ffplay.c |    1 +
> >1 file changed, 1 insertion(+)
> >
> >diff --git a/ffplay.c b/ffplay.c
> >index 282d56f..0c67ec4 100644
> >--- a/ffplay.c
> >+++ b/ffplay.c
> >@@ -2680,6 +2680,7 @@ static void stream_cycle_channel(VideoState *is, int codec_type)
> > the_end:
> >    stream_component_close(is, old_index);
> >    stream_component_open(is, stream_index);
> >+    avformat_queue_attached_pictures(is->ic);
> 
> Probably you should do this in the read thread, to avoid races.

new version of the patch submitted

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Avoid a single point of failure, be that a person or equipment.
-------------- 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/20120815/90cfe413/attachment.asc>


More information about the ffmpeg-devel mailing list