mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-03 09:01:50 -05:00
clean up event generation a little: suppress unnecessary events and generate new ones on owner change
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1212 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
47d009afd6
commit
3aba099fc3
4 changed files with 22 additions and 1 deletions
|
|
@ -208,6 +208,12 @@ void pa_source_output_push(pa_source_output *o, const pa_memchunk *chunk) {
|
|||
void pa_source_output_set_name(pa_source_output *o, const char *name) {
|
||||
assert(o);
|
||||
assert(o->ref >= 1);
|
||||
|
||||
if (!o->name && !name)
|
||||
return;
|
||||
|
||||
if (o->name && name && !strcmp(o->name, name))
|
||||
return;
|
||||
|
||||
pa_xfree(o->name);
|
||||
o->name = pa_xstrdup(name);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue