mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-22 08:17:01 +00:00
gst: Don't swap start/stop for negative rates in the SEGMENT query
This commit is contained in:
parent
47ed79fb1c
commit
2e35b36aab
4 changed files with 0 additions and 28 deletions
|
@ -593,13 +593,6 @@ gst_avi_demux_handle_src_query (GstPad * pad, GstObject * parent,
|
||||||
else
|
else
|
||||||
stop = gst_segment_to_stream_time (&avi->segment, format, stop);
|
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);
|
gst_query_set_segment (query, avi->segment.rate, format, start, stop);
|
||||||
res = TRUE;
|
res = TRUE;
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -3237,13 +3237,6 @@ gst_flv_demux_query (GstPad * pad, GstObject * parent, GstQuery * query)
|
||||||
else
|
else
|
||||||
stop = gst_segment_to_stream_time (&demux->segment, format, stop);
|
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);
|
gst_query_set_segment (query, demux->segment.rate, format, start, stop);
|
||||||
res = TRUE;
|
res = TRUE;
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -815,13 +815,6 @@ gst_qtdemux_handle_src_query (GstPad * pad, GstObject * parent,
|
||||||
else
|
else
|
||||||
stop = gst_segment_to_stream_time (&qtdemux->segment, format, stop);
|
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);
|
gst_query_set_segment (query, qtdemux->segment.rate, format, start, stop);
|
||||||
res = TRUE;
|
res = TRUE;
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -1521,13 +1521,6 @@ gst_matroska_demux_query (GstMatroskaDemux * demux, GstPad * pad,
|
||||||
stop =
|
stop =
|
||||||
gst_segment_to_stream_time (&demux->common.segment, format, 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,
|
gst_query_set_segment (query, demux->common.segment.rate, format, start,
|
||||||
stop);
|
stop);
|
||||||
res = TRUE;
|
res = TRUE;
|
||||||
|
|
Loading…
Reference in a new issue