mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-09 13:30:06 -05:00
gst: remove old format id conversion code
This commit is contained in:
parent
e079552dc8
commit
7186bd2583
1 changed files with 2 additions and 2 deletions
|
|
@ -641,7 +641,7 @@ handle_id_prop (struct spa_pod_prop *prop, const char *key, id_to_string_func fu
|
||||||
case SPA_CHOICE_None:
|
case SPA_CHOICE_None:
|
||||||
if (!(str = func(id[0])))
|
if (!(str = func(id[0])))
|
||||||
return;
|
return;
|
||||||
gst_caps_set_simple (res, key, G_TYPE_STRING, rindex (str, ':') + 1, NULL);
|
gst_caps_set_simple (res, key, G_TYPE_STRING, str, NULL);
|
||||||
break;
|
break;
|
||||||
case SPA_CHOICE_Enum:
|
case SPA_CHOICE_Enum:
|
||||||
{
|
{
|
||||||
|
|
@ -653,7 +653,7 @@ handle_id_prop (struct spa_pod_prop *prop, const char *key, id_to_string_func fu
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
g_value_init (&v, G_TYPE_STRING);
|
g_value_init (&v, G_TYPE_STRING);
|
||||||
g_value_set_string (&v, rindex (str, ':') + 1);
|
g_value_set_string (&v, str);
|
||||||
gst_value_list_append_and_take_value (&list, &v);
|
gst_value_list_append_and_take_value (&list, &v);
|
||||||
}
|
}
|
||||||
gst_caps_set_value (res, key, &list);
|
gst_caps_set_value (res, key, &list);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue