Anyone knows how to retrieve embedded subtitle language?

g-newbie gillian_love86 at yahoo.com
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))
	{
		g_free(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: http://gstreamer-devel.966125.n4.nabble.com/Anyone-knows-how-to-retrieve-embedded-subtitle-language-tp3717597p3717974.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list