Commit 2e35b36a authored by Sebastian Dröge's avatar Sebastian Dröge 🍵

gst: Don't swap start/stop for negative rates in the SEGMENT query

parent 47ed79fb
......@@ -593,13 +593,6 @@ gst_avi_demux_handle_src_query (GstPad * pad, GstObject * parent,
else
stop = gst_segment_to_stream_time (&avi->segment, format, stop);
if (avi->segment.rate < 0.0) {
gint64 tmp;
tmp = stop;
stop = start;
start = tmp;
}
gst_query_set_segment (query, avi->segment.rate, format, start, stop);
res = TRUE;
break;
......
......@@ -3237,13 +3237,6 @@ gst_flv_demux_query (GstPad * pad, GstObject * parent, GstQuery * query)
else
stop = gst_segment_to_stream_time (&demux->segment, format, stop);
if (demux->segment.rate < 0.0) {
gint64 tmp;
tmp = stop;
stop = start;
start = tmp;
}
gst_query_set_segment (query, demux->segment.rate, format, start, stop);
res = TRUE;
break;
......
......@@ -815,13 +815,6 @@ gst_qtdemux_handle_src_query (GstPad * pad, GstObject * parent,
else
stop = gst_segment_to_stream_time (&qtdemux->segment, format, stop);
if (qtdemux->segment.rate < 0.0) {
gint64 tmp;
tmp = stop;
stop = start;
start = tmp;
}
gst_query_set_segment (query, qtdemux->segment.rate, format, start, stop);
res = TRUE;
break;
......
......@@ -1521,13 +1521,6 @@ gst_matroska_demux_query (GstMatroskaDemux * demux, GstPad * pad,
stop =
gst_segment_to_stream_time (&demux->common.segment, format, stop);
if (demux->common.segment.rate < 0.0) {
gint64 tmp;
tmp = stop;
stop = start;
start = tmp;
}
gst_query_set_segment (query, demux->common.segment.rate, format, start,
stop);
res = TRUE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment