mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
pulse-server: implement TRIGGER and PREBUF methods
Start and stop prebuf.
This commit is contained in:
parent
968bc382af
commit
50f76c8730
1 changed files with 7 additions and 1 deletions
|
|
@ -2727,11 +2727,17 @@ static int do_flush_trigger_prebuf_stream(struct client *client, uint32_t comman
|
|||
break;
|
||||
case COMMAND_TRIGGER_PLAYBACK_STREAM:
|
||||
case COMMAND_PREBUF_PLAYBACK_STREAM:
|
||||
if (stream->type != STREAM_TYPE_PLAYBACK)
|
||||
return -ENOENT;
|
||||
if (command == COMMAND_TRIGGER_PLAYBACK_STREAM)
|
||||
stream->in_prebuf = false;
|
||||
else if (stream->attr.prebuf > 0)
|
||||
stream->in_prebuf = true;
|
||||
stream_send_request(stream);
|
||||
break;
|
||||
default:
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
return reply_simple_ack(client, tag);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue