From 7186bd258375e1c05c25d7118f266dfe3fead729 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 16 Oct 2018 17:13:27 +0200 Subject: [PATCH] gst: remove old format id conversion code --- src/gst/gstpipewireformat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gst/gstpipewireformat.c b/src/gst/gstpipewireformat.c index 465bbfb7e..598d593d6 100644 --- a/src/gst/gstpipewireformat.c +++ b/src/gst/gstpipewireformat.c @@ -641,7 +641,7 @@ handle_id_prop (struct spa_pod_prop *prop, const char *key, id_to_string_func fu case SPA_CHOICE_None: if (!(str = func(id[0]))) 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; 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; 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_caps_set_value (res, key, &list);