Anyone knows how to retrieve embedded subtitle language?

g-newbie gillian_love86 at
Thu Aug 4 01:29:48 PDT 2011

Thanks so much for the reply. But, i encounter compile error: "error:
'GST_TAG_LANGUAGE' undeclared (first use in this function)". Below is the
code snippet on how i do it. 

GstTagList *tags; 
g_signal_emit_by_name (playbin2, "get-text-tags", current_text, &tags);
if (tags)
	gchar *lc = NULL;
	if (gst_tag_list_get_string(tags, GST_TAG_LANGUAGE, &lc))
		lc = NULL;

I've tried instead with GST_TAG_LANGUAGE_CODE, but it returns no such string
the tag.

View this message in context:
Sent from the GStreamer-devel mailing list archive at

More information about the gstreamer-devel mailing list