mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 02:31:03 +00:00
rawparse: fix handling of segment event in sink event handler
This commit is contained in:
parent
9ac74f6226
commit
9e6377d4b7
1 changed files with 2 additions and 2 deletions
|
@ -694,8 +694,6 @@ gst_raw_parse_sink_event (GstPad * pad, GstObject * parent, GstEvent * event)
|
|||
if (segment.format != GST_FORMAT_TIME) {
|
||||
gst_event_unref (event);
|
||||
|
||||
segment.format = GST_FORMAT_TIME;
|
||||
|
||||
ret =
|
||||
gst_raw_parse_convert (rp, segment.format, segment.start,
|
||||
GST_FORMAT_TIME, (gint64 *) & segment.start);
|
||||
|
@ -710,6 +708,8 @@ gst_raw_parse_sink_event (GstPad * pad, GstObject * parent, GstEvent * event)
|
|||
break;
|
||||
}
|
||||
|
||||
segment.format = GST_FORMAT_TIME;
|
||||
|
||||
event = gst_event_new_segment (&segment);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue