tsdemux: Do not scan for keyframe when in push mode.
authorMathieu Duponchelle <mathieu.duponchelle@opencreed.com>
Mon, 21 Jul 2014 16:22:18 +0000 (18:22 +0200)
committerMathieu Duponchelle <mathieu.duponchelle@opencreed.com>
Tue, 22 Jul 2014 13:54:24 +0000 (15:54 +0200)
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=733490

gst/mpegtsdemux/tsdemux.c

index 21e6bba..af54a3e 100644 (file)
@@ -1387,7 +1387,8 @@ gst_ts_demux_stream_added (MpegTSBase * base, MpegTSBaseStream * bstream,
         gst_flow_combiner_add_pad (demux->flowcombiner, stream->pad);
     }
 
-    if (bstream->stream_type == GST_MPEGTS_STREAM_TYPE_VIDEO_H264) {
+    if (base->mode != BASE_MODE_PUSHING
+        && bstream->stream_type == GST_MPEGTS_STREAM_TYPE_VIDEO_H264) {
       stream->scan_function =
           (GstTsDemuxKeyFrameScanFunction) scan_keyframe_h264;
     } else {