Skip to content

Commit b3d17f3

Browse files
committed
Do not send QUBES_PA_SINK_UNCORK_CMD on overrun
This will cause pacat-simple-vchan to print a "Stream uncork" message to the terminal, which can cause more xruns, creating a loop.
1 parent 47a789f commit b3d17f3

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

pipewire/qubes-pw-module.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -916,10 +916,6 @@ static void playback_stream_process(void *d)
916916

917917
if (ready <= 0 || size > (uint32_t)ready) {
918918
pw_log_warn("Overrun: asked to write %" PRIu32 " bytes, but can only write %d", size, ready);
919-
if (stream->last_state) {
920-
// Force process_control_commands() to send QUBES_PA_SINK_UNCORK_CMD
921-
stream->last_state = 2;
922-
}
923919
process_control_commands(stream->impl);
924920
size = ready;
925921
}

0 commit comments

Comments
 (0)