mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-05 15:08:53 +00:00
oggdemux: Handle kate and cmml as sparse streams too
This commit is contained in:
parent
3a38a0958e
commit
ce51263142
1 changed files with 7 additions and 1 deletions
|
@ -1820,7 +1820,13 @@ gst_ogg_demux_activate_chain (GstOggDemux * ogg, GstOggChain * chain,
|
||||||
|
|
||||||
pad->is_sparse =
|
pad->is_sparse =
|
||||||
gst_structure_has_name (gst_caps_get_structure (GST_PAD_CAPS (pad),
|
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 */
|
/* activate first */
|
||||||
gst_pad_set_active (GST_PAD_CAST (pad), TRUE);
|
gst_pad_set_active (GST_PAD_CAST (pad), TRUE);
|
||||||
|
|
Loading…
Reference in a new issue