mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-01 22:58:50 -04: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";
|
||||
else if (media_type == SPA_MEDIA_TYPE_video)
|
||||
break;
|
||||
case SPA_MEDIA_TYPE_video:
|
||||
type = "Video";
|
||||
else
|
||||
break;
|
||||
default:
|
||||
type = "Generic";
|
||||
break;
|
||||
}
|
||||
|
||||
snprintf(media_class, sizeof(media_class), "Stream/%s/%s", dir, type);
|
||||
|
||||
|
|
|
|||
|
|
@ -227,8 +227,6 @@ core_create_object(void *object,
|
|||
if (obj == NULL)
|
||||
goto no_mem;
|
||||
|
||||
properties = NULL;
|
||||
|
||||
done:
|
||||
return;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue