This is an automated email from the git hooks/post-receive script. It was
generated because of a push to the "PulseAudio Sound Server" repository.

The master branch has been updated
      from  f97faae006c0acbcd33056008196f3651fe5b0d3 (commit)

- Log -----------------------------------------------------------------
2ecd764 alsa: Only set the 'first' flag to false when we actually call 
snd_pcm_start()
-----------------------------------------------------------------------

Summary of changes:
 src/modules/alsa/alsa-sink.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

-----------------------------------------------------------------------

commit 2ecd764662174bf81b90cfa057104dec103bfeec
Author: Colin Guthrie <[email protected]>
Date:   Tue Sep 14 19:44:57 2010 +0100

    alsa: Only set the 'first' flag to false when we actually call 
snd_pcm_start()
    
    Previously, if work_done was false, we could conceivably not call 
snd_pcm_start().

diff --git a/src/modules/alsa/alsa-sink.c b/src/modules/alsa/alsa-sink.c
index e62dcc0..1108a79 100644
--- a/src/modules/alsa/alsa-sink.c
+++ b/src/modules/alsa/alsa-sink.c
@@ -1417,6 +1417,8 @@ static void thread_func(void *userdata) {
                     snd_pcm_start(u->pcm_handle);
 
                     pa_smoother_resume(u->smoother, pa_rtclock_now(), TRUE);
+
+                    u->first = FALSE;
                 }
 
                 update_smoother(u);
@@ -1454,7 +1456,6 @@ static void thread_func(void *userdata) {
                 pa_rtpoll_set_timer_relative(u->rtpoll, PA_MIN(sleep_usec, 
cusec));
             }
 
-            u->first = FALSE;
             u->after_rewind = FALSE;
 
         } else if (u->use_tsched)

-- 
hooks/post-receive
PulseAudio Sound Server
_______________________________________________
pulseaudio-commits mailing list
[email protected]
https://tango.0pointer.de/mailman/listinfo/pulseaudio-commits

Reply via email to