summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.net>2005-04-21 11:10:52 +0000
committerTim-Philipp Müller <tim@centricular.net>2005-04-21 11:10:52 +0000
commit9568e3da3f28b85a0ca92d0a42d22f2af9951e77 (patch)
tree46a0d57b6d0e3ffc7201fa06fcd49f97bbd96071
parent106bd13c42d0b680daefb1ec6a4422a61f41099f (diff)
downloadgst-plugins-bad-9568e3da3f28b85a0ca92d0a42d22f2af9951e77.tar.gz
gst-plugins-bad-9568e3da3f28b85a0ca92d0a42d22f2af9951e77.tar.bz2
gst-plugins-bad-9568e3da3f28b85a0ca92d0a42d22f2af9951e77.zip
gst/speed/gstspeed.c: Don't reset speed->sample_size to 0 in state change from READY to PAUSED (fixes floating point ...
Original commit message from CVS: * gst/speed/gstspeed.c: (speed_change_state): Don't reset speed->sample_size to 0 in state change from READY to PAUSED (fixes floating point exception in chain function when using speed as part of an audiosink bin with playbin).
-rw-r--r--ChangeLog8
-rw-r--r--gst/speed/gstspeed.c3
2 files changed, 8 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index dd2c930a..42872a1e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2005-04-21 Tim-Philipp Müller <tim at centricular dot net>
+
+ * gst/speed/gstspeed.c: (speed_change_state):
+ Don't reset speed->sample_size to 0 in state change
+ from READY to PAUSED (fixes floating point exception
+ in chain function when using speed as part of an
+ audiosink bin with playbin).
+
2005-04-20 Zaheer Abbas Merali <zaheerabbas at merali dot org>
* ext/shout2/gstshout2.c:
diff --git a/gst/speed/gstspeed.c b/gst/speed/gstspeed.c
index 8a447fe3..edb23be9 100644
--- a/gst/speed/gstspeed.c
+++ b/gst/speed/gstspeed.c
@@ -565,12 +565,9 @@ speed_change_state (GstElement * element)
GstSpeed *speed = GST_SPEED (element);
switch (GST_STATE_TRANSITION (element)) {
- case GST_STATE_PAUSED_TO_READY:
- break;
case GST_STATE_READY_TO_PAUSED:
speed->offset = 0;
speed->timestamp = 0;
- speed->sample_size = 0;
break;
default:
break;