mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
small cleanups
This commit is contained in:
parent
28be82029b
commit
dca37fe037
2 changed files with 8 additions and 5 deletions
|
|
@ -923,12 +923,17 @@ static void client_node_initialized(void *data)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (media_type == SPA_MEDIA_TYPE_audio)
|
switch (media_type) {
|
||||||
|
case SPA_MEDIA_TYPE_audio:
|
||||||
type = "Audio";
|
type = "Audio";
|
||||||
else if (media_type == SPA_MEDIA_TYPE_video)
|
break;
|
||||||
|
case SPA_MEDIA_TYPE_video:
|
||||||
type = "Video";
|
type = "Video";
|
||||||
else
|
break;
|
||||||
|
default:
|
||||||
type = "Generic";
|
type = "Generic";
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
snprintf(media_class, sizeof(media_class), "Stream/%s/%s", dir, type);
|
snprintf(media_class, sizeof(media_class), "Stream/%s/%s", dir, type);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -227,8 +227,6 @@ core_create_object(void *object,
|
||||||
if (obj == NULL)
|
if (obj == NULL)
|
||||||
goto no_mem;
|
goto no_mem;
|
||||||
|
|
||||||
properties = NULL;
|
|
||||||
|
|
||||||
done:
|
done:
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue