summaryrefslogtreecommitdiff
path: root/ext/ogg
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.net>2012-09-02 02:41:34 +0100
committerTim-Philipp Müller <tim@centricular.net>2012-09-02 02:45:41 +0100
commit7c2e7b1a4f819f57bd57623c768e0f3e7fca07bd (patch)
treef0c269289480bb76e345316b8c5f647794b9bf97 /ext/ogg
parenta99a1042b9a0f69cea5fb149d74c0eb8ac793899 (diff)
text/plain + text/x-pango-markup -> text/x-raw
Diffstat (limited to 'ext/ogg')
-rw-r--r--ext/ogg/gstoggstream.c3
-rw-r--r--ext/ogg/gstogmparse.c6
2 files changed, 6 insertions, 3 deletions
diff --git a/ext/ogg/gstoggstream.c b/ext/ogg/gstoggstream.c
index 1c5484a9e..297155d65 100644
--- a/ext/ogg/gstoggstream.c
+++ b/ext/ogg/gstoggstream.c
@@ -1575,7 +1575,8 @@ setup_ogmtext_mapper (GstOggStream * pad, ogg_packet * packet)
if (pad->granulerate_d <= 0)
return FALSE;
- pad->caps = gst_caps_new_empty_simple ("text/plain");
+ pad->caps = gst_caps_new_simple ("text/x-raw", "format", G_TYPE_STRING,
+ "utf8", NULL);
pad->n_header_packets = 1;
pad->is_ogm = TRUE;
diff --git a/ext/ogg/gstogmparse.c b/ext/ogg/gstogmparse.c
index b8bd21267..565fdfe43 100644
--- a/ext/ogg/gstogmparse.c
+++ b/ext/ogg/gstogmparse.c
@@ -312,7 +312,8 @@ static void
gst_ogm_text_parse_base_init (GstOgmParseClass * klass)
{
GstElementClass *element_class = GST_ELEMENT_CLASS (klass);
- GstCaps *caps = gst_caps_new_simple ("text/plain", NULL, NULL);
+ GstCaps *caps = gst_caps_new_simple ("text/x-raw", "format", G_TYPE_STRING,
+ "utf8", NULL);
gst_element_class_set_static_metadata (element_class,
"OGM text stream parser", "Codec/Decoder/Subtitle",
@@ -604,7 +605,8 @@ gst_ogm_parse_stream_header (GstOgmParse * ogm, const guint8 * data, guint size)
GST_LOG_OBJECT (ogm, "Type: %s, s/u: %" G_GINT64_FORMAT
", timeunit=%" G_GINT64_FORMAT,
ogm->hdr.streamtype, ogm->hdr.samples_per_unit, ogm->hdr.time_unit);
- caps = gst_caps_new_empty_simple ("text/plain");
+ caps = gst_caps_new_simple ("text/x-raw", "format", G_TYPE_STRING,
+ "utf8", NULL);
break;
}
default: