webvttenc: Change src pad template to application/x-subtitle-vtt
authorSeungha Yang <sh.yang@lge.com>
Mon, 10 Jul 2017 07:39:49 +0000 (16:39 +0900)
committerEdward Hervey <bilboed@bilboed.com>
Tue, 18 Jul 2017 07:40:18 +0000 (09:40 +0200)
Use consistent mime-type with subparse element for webvtt format

https://bugzilla.gnome.org/show_bug.cgi?id=784715

docs/plugins/inspect/plugin-subenc.xml
gst/subenc/gstwebvttenc.c

index e13b759..abf5e01 100644 (file)
@@ -47,9 +47,9 @@
           <name>src</name>
           <direction>source</direction>
           <presence>always</presence>
-          <details>text/vtt</details>
+          <details>application/x-subtitle-vtt</details>
         </caps>
       </pads>
     </element>
   </elements>
-</plugin>
\ No newline at end of file
+</plugin>
index eefc78d..c8a54b6 100644 (file)
@@ -39,7 +39,7 @@ enum
 static GstStaticPadTemplate src_template = GST_STATIC_PAD_TEMPLATE ("src",
     GST_PAD_SRC,
     GST_PAD_ALWAYS,
-    GST_STATIC_CAPS ("text/vtt"));
+    GST_STATIC_CAPS ("application/x-subtitle-vtt"));
 
 static GstStaticPadTemplate sink_template = GST_STATIC_PAD_TEMPLATE ("sink",
     GST_PAD_SINK,