Skip to content

Commit

Permalink
encoder: clear source id when stopping the timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Matthew committed Jul 2, 2016
1 parent 9b24349 commit 69de024
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion backends/gstreamer/rb-encoder-gst.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 69de024

Please sign in to comment.