subparse: fix parsing by not misusing non time segments
A simple filesrc ! subparse ! fakesink type pipeline now works again.
This commit is contained in:
parent
15b7375c44
commit
17ea0308cf
@ -1582,7 +1582,10 @@ gst_sub_parse_sink_event (GstPad * pad, GstObject * parent, GstEvent * event)
|
||||
}
|
||||
case GST_EVENT_SEGMENT:
|
||||
{
|
||||
gst_event_copy_segment (event, &self->segment);
|
||||
const GstSegment *s;
|
||||
gst_event_parse_segment (event, &s);
|
||||
if (s->format == GST_FORMAT_TIME)
|
||||
gst_event_copy_segment (event, &self->segment);
|
||||
GST_DEBUG_OBJECT (self, "newsegment (%s)",
|
||||
gst_format_get_name (self->segment.format));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user