jpegdec: mark all parsed frames as sync points
authorThiago Santos <ts.santos@sisa.samsung.com>
Thu, 27 Feb 2014 21:55:04 +0000 (18:55 -0300)
committerThiago Santos <ts.santos@sisa.samsung.com>
Thu, 27 Feb 2014 22:08:15 +0000 (19:08 -0300)
all jpeg frames are sync points, so mark them as such so
reverse playback can properly work with the video decoder
base class

https://bugzilla.gnome.org/show_bug.cgi?id=725104

ext/jpeg/gstjpegdec.c

index 89b8460..b05043a 100644 (file)
@@ -456,6 +456,7 @@ need_more_data:
 have_full_frame:
   if (toadd)
     gst_video_decoder_add_to_frame (bdec, toadd);
+  GST_VIDEO_CODEC_FRAME_SET_SYNC_POINT (frame);
   return gst_video_decoder_have_frame (bdec);
 
 drop_frame: