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
This commit is contained in:
Thiago Santos 2014-01-08 16:28:54 -03:00
parent 6c95262447
commit 51fa54a281

View file

@ -1087,6 +1087,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));