mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-05 06:58:56 +00:00
audiosink: fix resuming after pause
For resuming after paused, gst_audio_sink_ring_buffer_start() needs to be called to notify the ringbuffer to continue to play.
This commit is contained in:
parent
0dc1b6049e
commit
feb1e24347
2 changed files with 3 additions and 5 deletions
|
@ -560,10 +560,10 @@ gst_audio_sink_ring_buffer_resume (GstAudioRingBuffer * buf)
|
||||||
GST_DEBUG_OBJECT (sink, "resume...");
|
GST_DEBUG_OBJECT (sink, "resume...");
|
||||||
csink->resume (sink);
|
csink->resume (sink);
|
||||||
GST_DEBUG_OBJECT (sink, "resume done");
|
GST_DEBUG_OBJECT (sink, "resume done");
|
||||||
} else {
|
|
||||||
/* fallback to start for audio sinks that don't provide resume */
|
|
||||||
gst_audio_sink_ring_buffer_start (buf);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
gst_audio_sink_ring_buffer_start (buf);
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -78,8 +78,6 @@ struct _GstAudioSink {
|
||||||
* For retro compatibility, the audio sink will fallback
|
* For retro compatibility, the audio sink will fallback
|
||||||
* to calling reset if this vmethod is not provided.
|
* to calling reset if this vmethod is not provided.
|
||||||
* @resume: Resume the device.
|
* @resume: Resume the device.
|
||||||
* For retro compatibility, the audio sink will fallback
|
|
||||||
* to calling start if this vmethod is not provided.
|
|
||||||
* @stop: Stop the device and unblock write as fast as possible.
|
* @stop: Stop the device and unblock write as fast as possible.
|
||||||
* Pending samples are flushed from the device.
|
* Pending samples are flushed from the device.
|
||||||
* For retro compatibility, the audio sink will fallback
|
* For retro compatibility, the audio sink will fallback
|
||||||
|
|
Loading…
Reference in a new issue