summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathieu Duponchelle <mathieu.duponchelle@opencreed.com>2014-07-21 18:22:18 +0200
committerMathieu Duponchelle <mathieu.duponchelle@opencreed.com>2014-07-22 15:51:21 +0200
commit29dd2156493878d012c41ca2763c84209795ee33 (patch)
tree776331ca8a6fb1e8437429390c128412c8c8c008
parent39d7d438c672cff1cdc0a25ec59ff59fd55ddc68 (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.c3
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 {