[rhythmbox] encoder: clear source id when stopping the timeout
- From: Jonathan Matthew <jmatthew src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rhythmbox] encoder: clear source id when stopping the timeout
- Date: Sat, 2 Jul 2016 05:55:44 +0000 (UTC)
commit 69de02497b3e5859988b9882fe1b3da00bf6d9fc
Author: Jonathan Matthew <jonathan d14n org>
Date: Sat Jul 2 15:55:21 2016 +1000
encoder: clear source id when stopping the timeout
backends/gstreamer/rb-encoder-gst.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/backends/gstreamer/rb-encoder-gst.c b/backends/gstreamer/rb-encoder-gst.c
index 68c74c3..d88ee2c 100644
--- a/backends/gstreamer/rb-encoder-gst.c
+++ b/backends/gstreamer/rb-encoder-gst.c
@@ -239,8 +239,10 @@ progress_timeout_cb (RBEncoderGst *encoder)
format = encoder->priv->position_format;
gst_element_get_state (encoder->priv->pipeline, &state, NULL, GST_CLOCK_TIME_NONE);
- if (state != GST_STATE_PLAYING)
+ if (state != GST_STATE_PLAYING) {
+ encoder->priv->progress_id = 0;
return FALSE;
+ }
if (!gst_element_query_position (encoder->priv->pipeline, format, &position)) {
g_warning ("Could not get current track position");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]