summaryrefslogtreecommitdiff
path: root/gst/realmedia
diff options
context:
space:
mode:
authorSebastian Dröge <slomo@circular-chaos.org>2013-07-29 12:13:17 +0200
committerSebastian Dröge <slomo@circular-chaos.org>2013-07-29 12:13:17 +0200
commit4b0f044151d0481c0ad9beaa0bd04f58f09eeebe (patch)
tree47487c045c647d548bfa552bdd792de38f65430d /gst/realmedia
parenteb5dfd5436d16e558773024f1eb1cd01f562b3c2 (diff)
gst: Don't swap start/stop for negative rates in the SEGMENT query
Diffstat (limited to 'gst/realmedia')
-rw-r--r--gst/realmedia/rademux.c7
-rw-r--r--gst/realmedia/rmdemux.c7
2 files changed, 0 insertions, 14 deletions
diff --git a/gst/realmedia/rademux.c b/gst/realmedia/rademux.c
index c1d96776..dfa85eb9 100644
--- a/gst/realmedia/rademux.c
+++ b/gst/realmedia/rademux.c
@@ -949,13 +949,6 @@ gst_real_audio_demux_src_query (GstPad * pad, GstObject * parent,
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);
ret = TRUE;
break;
diff --git a/gst/realmedia/rmdemux.c b/gst/realmedia/rmdemux.c
index 3d615b7f..2340a056 100644
--- a/gst/realmedia/rmdemux.c
+++ b/gst/realmedia/rmdemux.c
@@ -662,13 +662,6 @@ gst_rmdemux_src_query (GstPad * pad, GstObject * parent, GstQuery * query)
else
stop = gst_segment_to_stream_time (&rmdemux->segment, format, stop);
- if (rmdemux->segment.rate < 0.0) {
- gint64 tmp;
- tmp = stop;
- stop = start;
- start = tmp;
- }
-
gst_query_set_segment (query, rmdemux->segment.rate, format, start, stop);
res = TRUE;
break;