Skip to content

Commit

Permalink
Merge tag 'JH7110_MM_v4.1.0' into vf2-devel
Browse files Browse the repository at this point in the history
version JH7110_MM_v4.1.0 for JH7110 EVB board merge from tag JH7110_515_SDK_v4.1.0
  • Loading branch information
andyhu-stf committed Feb 5, 2023
2 parents 7a6b42d + d71fa37 commit de21603
Showing 1 changed file with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
Fix alsasink resume failed when gst-play paused

Signed-off-by: Leo Lu <leo.lu@starfivetech.com>


diff -purN a/ext/alsa/gstalsasink.c b/ext/alsa/gstalsasink.c
--- a/ext/alsa/gstalsasink.c 2021-09-09 03:02:22.115758400 +0800
+++ b/ext/alsa/gstalsasink.c 2023-01-28 16:11:57.149906083 +0800
@@ -1170,6 +1170,7 @@ gst_alsasink_resume (GstAudioSink * asin

if (alsa->hw_support_pause == TRUE) {
GST_ALSA_SINK_LOCK (asink);
+ CHECK (snd_pcm_prepare (alsa->handle), resume_error);
CHECK (snd_pcm_pause (alsa->handle, 0), resume_error);
GST_DEBUG_OBJECT (alsa, "resume done");
GST_ALSA_SINK_UNLOCK (asink);

0 comments on commit de21603

Please sign in to comment.