mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-20 08:56:56 -05:00
pulse: improve debug of events
This commit is contained in:
parent
c20100eabb
commit
4346cad322
2 changed files with 49 additions and 3 deletions
|
|
@ -700,6 +700,7 @@ void pa_stream_unref(pa_stream *s)
|
|||
spa_assert(s);
|
||||
spa_assert(s->refcount >= 1);
|
||||
|
||||
pw_log_debug("stream %p: ref %d", s, s->refcount);
|
||||
if (--s->refcount == 0)
|
||||
stream_free(s);
|
||||
}
|
||||
|
|
@ -711,6 +712,7 @@ pa_stream *pa_stream_ref(pa_stream *s)
|
|||
spa_assert(s->refcount >= 1);
|
||||
|
||||
s->refcount++;
|
||||
pw_log_debug("stream %p: ref %d", s, s->refcount);
|
||||
return s;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue