summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThiago Santos <ts.santos@sisa.samsung.com>2014-01-08 16:28:54 -0300
committerSebastian Dröge <sebastian@centricular.com>2014-01-14 13:07:59 +0100
commit05eaa6bc1be17d966a9e012b4a916be099bcfeb6 (patch)
treecc9a133b4de46529fab96900f242bf992bb13e33
parent3f88d10f3e03bfc850c90e8d3162ab8e1ba2e42e (diff)
downloadgstreamer-05eaa6bc1be17d966a9e012b4a916be099bcfeb6.tar.gz
baseparse: do not ignore TIME segments
TIME segments are being ignored and a standard initialized segment is used instead. This causes issues as not properly detecting reverse playback or not cliping output based on the segment. This seems to be a regression from one of the GstSegment/GstEvent redesigns on the 0.10 -> 1.0 transition
-rw-r--r--libs/gst/base/gstbaseparse.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/gst/base/gstbaseparse.c b/libs/gst/base/gstbaseparse.c
index c932bb4d8e..07e0e6a96a 100644
--- a/libs/gst/base/gstbaseparse.c
+++ b/libs/gst/base/gstbaseparse.c
@@ -1088,6 +1088,7 @@ gst_base_parse_sink_event_default (GstBaseParse * parse, GstEvent * event)
* whatever else it might claim */
parse->priv->upstream_seekable = FALSE;
next_dts = in_segment->start;
+ gst_event_copy_segment (event, &out_segment);
}
memcpy (&parse->segment, &out_segment, sizeof (GstSegment));