gst: Don't swap start/stop for negative rates in the SEGMENT query
authorSebastian Dröge <slomo@circular-chaos.org>
Mon, 29 Jul 2013 10:12:41 +0000 (12:12 +0200)
committerSebastian Dröge <slomo@circular-chaos.org>
Mon, 29 Jul 2013 10:12:41 +0000 (12:12 +0200)
gst/avi/gstavidemux.c
gst/flv/gstflvdemux.c
gst/isomp4/qtdemux.c
gst/matroska/matroska-demux.c

index f96ef4d..11674cf 100644 (file)
@@ -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;
index 134ef59..6723e80 100644 (file)
@@ -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;
index f9aa3fd..cc8e919 100644 (file)
@@ -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;
index dc5c6cb..e25f676 100644 (file)
@@ -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;