mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-18 07:00:06 -05:00
use properties instead of parent_id
This commit is contained in:
parent
f9fce3cb30
commit
2308318b39
4 changed files with 44 additions and 24 deletions
|
|
@ -797,7 +797,10 @@ const char *pa_stream_get_device_name(pa_stream *s)
|
|||
|
||||
PA_CHECK_VALIDITY_RETURN_NULL(s->context, s->state == PA_STREAM_READY, PA_ERR_BADSTATE);
|
||||
PA_CHECK_VALIDITY_RETURN_NULL(s->context, s->direction != PA_STREAM_UPLOAD, PA_ERR_BADSTATE);
|
||||
PA_CHECK_VALIDITY_RETURN_NULL(s->context, s->device_name, PA_ERR_BADSTATE);
|
||||
// PA_CHECK_VALIDITY_RETURN_NULL(s->context, s->device_name, PA_ERR_BADSTATE);
|
||||
|
||||
if (s->device_name == NULL)
|
||||
return "unnamed";
|
||||
|
||||
return s->device_name;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue