jpegenc: mark all output frames as keyframes
authorWim Taymans <wim.taymans@collabora.co.uk>
Wed, 27 Jun 2012 07:09:32 +0000 (09:09 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Wed, 27 Jun 2012 07:13:47 +0000 (09:13 +0200)
ext/jpeg/gstjpegenc.c

index 8521522..56a83b3 100644 (file)
@@ -248,6 +248,8 @@ gst_jpegenc_term_destination (j_compress_ptr cinfo)
 
   gst_video_frame_unmap (&jpegenc->current_vframe);
 
+  GST_VIDEO_CODEC_FRAME_SET_SYNC_POINT (jpegenc->current_frame);
+
   gst_video_encoder_finish_frame (GST_VIDEO_ENCODER (jpegenc),
       jpegenc->current_frame);
   jpegenc->current_frame = NULL;