mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-07-04 05:35:53 +00:00
rawparse: send segment event in time format also in push mode
When converting the incoming segment from byte to time format, don't just convert the start/stop/time values, but also change the segment format to TIME. https://bugzilla.gnome.org/show_bug.cgi?id=696361
This commit is contained in:
parent
659adfdea8
commit
0002f7638b
|
@ -672,6 +672,8 @@ 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);
|
||||
|
|
Loading…
Reference in a new issue