mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 15:27:07 +00:00
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
1 changed files with 4 additions and 1 deletions
|
@ -1582,6 +1582,9 @@ gst_sub_parse_sink_event (GstPad * pad, GstObject * parent, GstEvent * event)
|
||||||
}
|
}
|
||||||
case GST_EVENT_SEGMENT:
|
case GST_EVENT_SEGMENT:
|
||||||
{
|
{
|
||||||
|
const GstSegment *s;
|
||||||
|
gst_event_parse_segment (event, &s);
|
||||||
|
if (s->format == GST_FORMAT_TIME)
|
||||||
gst_event_copy_segment (event, &self->segment);
|
gst_event_copy_segment (event, &self->segment);
|
||||||
GST_DEBUG_OBJECT (self, "newsegment (%s)",
|
GST_DEBUG_OBJECT (self, "newsegment (%s)",
|
||||||
gst_format_get_name (self->segment.format));
|
gst_format_get_name (self->segment.format));
|
||||||
|
|
Loading…
Reference in a new issue