servicemp3 : fix getSubtitleType
[vuplus_dvbapp] / lib / service / servicemp3.cpp
index beee3a9..0e7cca9 100755 (executable)
@@ -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);