From: hschang Date: Wed, 8 Jan 2014 07:31:47 +0000 (+0900) Subject: servicemp3 : fix getSubtitleType X-Git-Url: http://code.vuplus.com/gitweb/?p=vuplus_dvbapp;a=commitdiff_plain;h=08931d68421a3c6381414cdb2409125bb94c7716 servicemp3 : fix getSubtitleType --- diff --git a/lib/service/servicemp3.cpp b/lib/service/servicemp3.cpp index beee3a9..0e7cca9 100755 --- a/lib/service/servicemp3.cpp +++ b/lib/service/servicemp3.cpp @@ -1134,6 +1134,11 @@ subtype_t getSubtitleType(GstPad* pad, gchar *g_codec=NULL) subtype_t type = stUnknown; GstCaps* caps = gst_pad_get_negotiated_caps(pad); + if (!caps && !g_codec) + { + caps = gst_pad_get_allowed_caps(pad); + } + if ( caps ) { GstStructure* str = gst_caps_get_structure(caps, 0);