From: Mathieu Duponchelle Date: Mon, 21 Jul 2014 16:22:18 +0000 (+0200) Subject: tsdemux: Do not scan for keyframe when in push mode. X-Git-Tag: accepted/tizen/unified/20220217.153506~2^2~10^2~9^2~12^2~2^2~300 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ab1c328bb1544d5c9813abb31075ce52094965ba;p=platform%2Fupstream%2Fgstreamer.git tsdemux: Do not scan for keyframe when in push mode. Fixes https://bugzilla.gnome.org/show_bug.cgi?id=733490 --- diff --git a/gst/mpegtsdemux/tsdemux.c b/gst/mpegtsdemux/tsdemux.c index 21e6bba..af54a3e 100644 --- a/gst/mpegtsdemux/tsdemux.c +++ b/gst/mpegtsdemux/tsdemux.c @@ -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 {