From: Sebastian Dröge Date: Thu, 10 Sep 2009 08:02:58 +0000 (+0200) Subject: oggdemux: Handle kate and cmml as sparse streams too X-Git-Tag: RELEASE-0.10.25~39 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ce51263142bb1f2395c700dc4259ca7d984f6cdf;p=platform%2Fupstream%2Fgst-plugins-base.git oggdemux: Handle kate and cmml as sparse streams too --- diff --git a/ext/ogg/gstoggdemux.c b/ext/ogg/gstoggdemux.c index 5c7cd0abe..ddb696644 100644 --- a/ext/ogg/gstoggdemux.c +++ b/ext/ogg/gstoggdemux.c @@ -1820,7 +1820,13 @@ gst_ogg_demux_activate_chain (GstOggDemux * ogg, GstOggChain * chain, pad->is_sparse = gst_structure_has_name (gst_caps_get_structure (GST_PAD_CAPS (pad), - 0), "application/x-ogm-text"); + 0), "application/x-ogm-text") || + gst_structure_has_name (gst_caps_get_structure (GST_PAD_CAPS (pad), + 0), "text/x-cmml") || + gst_structure_has_name (gst_caps_get_structure (GST_PAD_CAPS (pad), + 0), "subtitle/x-kate") || + gst_structure_has_name (gst_caps_get_structure (GST_PAD_CAPS (pad), + 0), "application/x-kate"); /* activate first */ gst_pad_set_active (GST_PAD_CAST (pad), TRUE);