small cleanups

This commit is contained in:
Wim Taymans 2018-09-11 10:24:48 +02:00
parent 28be82029b
commit dca37fe037
2 changed files with 8 additions and 5 deletions

View file

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

View file

@ -227,8 +227,6 @@ core_create_object(void *object,
if (obj == NULL)
goto no_mem;
properties = NULL;
done:
return;