Commit c330ec82 authored by Jean-Paul Saman's avatar Jean-Paul Saman

dbus: add iso639_2T language code

parent ad19397d
......@@ -2299,6 +2299,29 @@ static int GetInputEsMeta( input_item_t * p_item, int32_t i_es,
dbus_message_iter_close_container( &dict, &dict_entry );
free( psz_code );
/* */
psz_code = strdup("iso639_2T");
psz_variant = NULL;
dbus_message_iter_open_container( &dict, DBUS_TYPE_DICT_ENTRY,
NULL, &dict_entry );
dbus_message_iter_append_basic( &dict_entry, DBUS_TYPE_STRING,
&psz_code );
if( asprintf( &psz_variant, "%s", code->psz_iso639_2T ) != -1 )
{
dbus_message_iter_open_container( &dict_entry, DBUS_TYPE_VARIANT,
DBUS_TYPE_STRING_AS_STRING, &variant );
dbus_message_iter_append_basic( &variant,
DBUS_TYPE_STRING, &psz_variant );
dbus_message_iter_close_container( &dict_entry, &variant );
free( psz_variant );
}
dbus_message_iter_close_container( &dict, &dict_entry );
free(psz_code);
}
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment