use properties instead of parent_id

This commit is contained in:
Wim Taymans 2019-08-16 22:10:08 +02:00
parent f9fce3cb30
commit 2308318b39
4 changed files with 44 additions and 24 deletions

View file

@ -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;
}