[pulseaudio-commits] [SCM] PulseAudio Sound Server branch, master, updated. v0.9.12-137-gaa43739
Lennart Poettering
gitmailer-noreply at 0pointer.de
Sun Oct 5 17:26:28 PDT 2008
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 5996f59dd5e13d10da9a2c95f0040e48f7a7696e (commit)
- Log -----------------------------------------------------------------
aa43739... make sure we send a started messages when we are uncorking
-----------------------------------------------------------------------
Summary of changes:
src/pulsecore/protocol-native.c | 4 ++++
src/pulsecore/sink-input.c | 3 +++
2 files changed, 7 insertions(+), 0 deletions(-)
-----------------------------------------------------------------------
commit aa4373962cef6c00b16e229ff6165c144d322ccb
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Oct 6 02:26:08 2008 +0200
make sure we send a started messages when we are uncorking
diff --git a/src/pulsecore/protocol-native.c b/src/pulsecore/protocol-native.c
index 5c6dbf4..778aab5 100644
--- a/src/pulsecore/protocol-native.c
+++ b/src/pulsecore/protocol-native.c
@@ -3168,6 +3168,10 @@ static void command_cork_playback_stream(pa_pdispatch *pd, uint32_t command, uin
CHECK_VALIDITY(c->pstream, playback_stream_isinstance(s), tag, PA_ERR_NOENTITY);
pa_sink_input_cork(s->sink_input, b);
+
+ if (b)
+ s->is_underrun = TRUE;
+
pa_pstream_send_simple_ack(c->pstream, tag);
}
diff --git a/src/pulsecore/sink-input.c b/src/pulsecore/sink-input.c
index 326a7e2..4f70347 100644
--- a/src/pulsecore/sink-input.c
+++ b/src/pulsecore/sink-input.c
@@ -1030,6 +1030,9 @@ void pa_sink_input_set_state_within_thread(pa_sink_input *i, pa_sink_input_state
} else if (uncorking) {
+ i->thread_info.underrun_for = (uint64_t) -1;
+ i->thread_info.playing_for = 0;
+
pa_log_debug("Requesting rewind due to uncorking");
/* OK, we're being uncorked. Make sure we're not rewound when
--
hooks/post-receive
PulseAudio Sound Server
More information about the pulseaudio-commits
mailing list