GNOME Bugzilla – Bug 619634
audio dropout in unpausing the media
Last modified: 2011-02-15 14:47:32 UTC
play a media file, pause the media, resuming the media, heard a sound glitch.
Created attachment 161956 [details] [review] proposed patch I found a way to fix the problem. The idea is only change the base time when a seeking happens (reset_start_time() is called); if user just pause and resume, do not change the base_time. See attached patch.
unfortunately that would not work when the clock advances in the paused state, such as when streaming media from a network.
please advice a better way to resolve this, like a special clock changed event sent from rtspsrc maybe?
How about this: add a property "elapseInPaused" to the GstClock. GstAudioClock set this to be false, "true" for SystemClock (created by gstrtpdec). So only GstAudioClock doesn't need to recalculate when playing->paused->playing and no seeking happens. gstrtpdec remains the same way: always recalculating the base time when paused->playing.
*** This bug has been marked as a duplicate of bug 639240 ***