oggdemux: Don't swap start/stop for negative rates in the SEGMENT query
This commit is contained in:
parent
bb870b8b7b
commit
246e1781c7
@ -368,13 +368,6 @@ gst_ogg_pad_src_query (GstPad * pad, GstObject * parent, GstQuery * query)
|
|||||||
else
|
else
|
||||||
stop = gst_segment_to_stream_time (&ogg->segment, format, stop);
|
stop = gst_segment_to_stream_time (&ogg->segment, format, stop);
|
||||||
|
|
||||||
if (ogg->segment.rate < 0.0) {
|
|
||||||
gint64 tmp;
|
|
||||||
tmp = stop;
|
|
||||||
stop = start;
|
|
||||||
start = tmp;
|
|
||||||
}
|
|
||||||
|
|
||||||
gst_query_set_segment (query, ogg->segment.rate, format, start, stop);
|
gst_query_set_segment (query, ogg->segment.rate, format, start, stop);
|
||||||
res = TRUE;
|
res = TRUE;
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user