mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
pulse-server: clear timer when stream is created
Make a function when the stream is created so that we can clear the create_tag and the timer.
This commit is contained in:
parent
ca713c08ee
commit
06efc8ffb6
3 changed files with 12 additions and 2 deletions
|
|
@ -119,6 +119,15 @@ error_errno:
|
|||
return NULL;
|
||||
}
|
||||
|
||||
void stream_created(struct stream *stream)
|
||||
{
|
||||
struct client *client = stream->client;
|
||||
pw_log_debug("client %p: stream %p channel:%d", client, stream, stream->channel);
|
||||
|
||||
stream->create_tag = SPA_ID_INVALID;
|
||||
pw_timer_queue_cancel(&stream->timer);
|
||||
}
|
||||
|
||||
void stream_free(struct stream *stream)
|
||||
{
|
||||
struct client *client = stream->client;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue