diff options
author | Mathieu Duponchelle <mathieu.duponchelle@opencreed.com> | 2014-07-21 18:22:18 +0200 |
---|---|---|
committer | Mathieu Duponchelle <mathieu.duponchelle@opencreed.com> | 2014-07-22 15:51:21 +0200 |
commit | 29dd2156493878d012c41ca2763c84209795ee33 (patch) | |
tree | 776331ca8a6fb1e8437429390c128412c8c8c008 | |
parent | 39d7d438c672cff1cdc0a25ec59ff59fd55ddc68 (diff) |
tsdemux: Do not scan for keyframe when in push mode.
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=733490
-rw-r--r-- | gst/mpegtsdemux/tsdemux.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gst/mpegtsdemux/tsdemux.c b/gst/mpegtsdemux/tsdemux.c index 21e6bbaed..af54a3e55 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 { |