rawparse: fix handling of segment event in sink event handler

This commit is contained in:
Vootele Vesterblom 2014-10-23 17:42:27 +03:00 committed by Sebastian Dröge
parent 9ac74f6226
commit 9e6377d4b7

View file

@ -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);
}