From c4c7d9a8ef5dbb3826f104a812e1781d26725cb5 Mon Sep 17 00:00:00 2001 From: Vasilis Liaskovitis Date: Tue, 21 Oct 2014 21:45:15 +0200 Subject: [PATCH] MediaImpl:: do not call updateRate() on GST_MESSAGE_ASYNC_DONE (bug #51) GST_MESSAGE_ASYNC_DONE is received when elements finish changing state. If we initiate an updateRate here, we keep generating seek events in a loop forever, pausing and re-starting the pipeline without reason. --- MediaImpl.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/MediaImpl.cpp b/MediaImpl.cpp index d3f3506..72127c9 100644 --- a/MediaImpl.cpp +++ b/MediaImpl.cpp @@ -647,8 +647,6 @@ void MediaImpl::_checkMessages() g_print ("Seeking is ENABLED from %" GST_TIME_FORMAT " to %" GST_TIME_FORMAT "\n", GST_TIME_ARGS (start), GST_TIME_ARGS (end)); - // Update playback rate. - _updateRate(); } else {