video/x-dvd-subpicture -> subpicture/x-dvd
authorTim-Philipp Müller <tim@centricular.net>
Mon, 20 Aug 2012 20:35:03 +0000 (21:35 +0100)
committerTim-Philipp Müller <tim@centricular.net>
Mon, 20 Aug 2012 20:36:15 +0000 (21:36 +0100)
gst-libs/gst/pbutils/descriptions.c
gst-libs/gst/pbutils/gstdiscoverer.c
gst/encoding/gstencodebin.c
gst/playback/gstplaybin2.c
gst/playback/gstrawcaps.h
gst/playback/gstsubtitleoverlay.c
tests/check/libs/pbutils.c

index 486ac3b..55aa774 100644 (file)
@@ -172,7 +172,7 @@ static const FormatInfo formats[] = {
   {"video/x-dirac", "Dirac", 0},
   {"video/x-dnxhd", "Digital Nonlinear Extensible High Definition (DNxHD)", 0},
   /* FIXME 0.11: rename to subpicture/x-dvd or so */
-  {"video/x-dvd-subpicture", "DVD subpicture", 0},
+  {"subpicture/x-dvd", "DVD subpicture", 0},
   {"video/x-ffv", N_("FFMpeg v1"), 0},
   {"video/x-flash-screen", "Flash Screen Video", 0},
   {"video/x-flash-video", "Sorenson Spark Video", 0},
index 07e2d04..a3f5b9e 100644 (file)
@@ -501,7 +501,7 @@ _event_probe (GstPad * pad, GstPadProbeInfo * info, PrivateStream * ps)
 static GstStaticCaps subtitle_caps = GST_STATIC_CAPS ("text/plain; "
     "text/x-pango-markup; subpicture/x-pgs; subpicture/x-dvb; "
     "application/x-subtitle-unknown; application/x-ssa; application/x-ass; "
-    "subtitle/x-kate; application/x-kate; video/x-dvd-subpicture");
+    "subtitle/x-kate; application/x-kate; subpicture/x-dvd");
 
 static gboolean
 is_subtitle_caps (const GstCaps * caps)
index 3399dba..2659806 100644 (file)
@@ -234,7 +234,7 @@ struct _StreamGroup
   "audio/x-raw; "                              \
   "text/plain; "                               \
   "text/x-pango-markup; "                      \
-  "video/x-dvd-subpicture; "                   \
+  "subpicture/x-dvd; "                 \
   "subpicture/x-pgs"
 
 /* Properties */
index bb85c32..91ad4e4 100644 (file)
@@ -1217,7 +1217,7 @@ init_group (GstPlayBin * playbin, GstSourceGroup * group)
   group->selector[PLAYBIN_STREAM_TEXT].media_list[1] = "application/x-subtitle";
   group->selector[PLAYBIN_STREAM_TEXT].media_list[2] = "application/x-ssa";
   group->selector[PLAYBIN_STREAM_TEXT].media_list[3] = "application/x-ass";
-  group->selector[PLAYBIN_STREAM_TEXT].media_list[4] = "video/x-dvd-subpicture";
+  group->selector[PLAYBIN_STREAM_TEXT].media_list[4] = "subpicture/x-dvd";
   group->selector[PLAYBIN_STREAM_TEXT].media_list[5] = "subpicture/";
   group->selector[PLAYBIN_STREAM_TEXT].media_list[6] = "subtitle/";
   group->selector[PLAYBIN_STREAM_TEXT].get_media_caps =
@@ -2754,8 +2754,7 @@ pad_added_cb (GstElement * decodebin, GstPad * pad, GstSourceGroup * group)
       GST_DEBUG_PAD_NAME (pad), caps, group);
 
   /* major type of the pad, this determines the selector to use,
-     try exact match first so we don't prematurely match video/
-     for video/x-dvd-subpicture */
+     try exact match first */
   for (pass = 0; !select && pass < 2; pass++) {
     for (i = 0; i < PLAYBIN_STREAM_LAST; i++) {
       if (array_has_value (group->selector[i].media_list, name, pass == 0)) {
index 7f9ef35..7ebdb29 100644 (file)
@@ -30,7 +30,7 @@ G_BEGIN_DECLS
     "audio/x-raw; " \
     "text/plain; " \
     "text/x-pango-markup; " \
-    "video/x-dvd-subpicture; " \
+    "subpicture/x-dvd; " \
     "subpicture/x-pgs"
 
 G_END_DECLS
index 2b4aff7..4d6e720 100644 (file)
@@ -29,7 +29,7 @@
  * <refsect2>
  * <title>Examples</title>
  * |[
- * gst-launch -v filesrc location=test.mkv ! matroskademux name=demux ! "video/x-h264" ! queue2 ! decodebin ! subtitleoverlay name=overlay ! videoconvert ! autovideosink  demux. ! "video/x-dvd-subpicture" ! queue2 ! overlay.
+ * gst-launch -v filesrc location=test.mkv ! matroskademux name=demux ! "video/x-h264" ! queue2 ! decodebin ! subtitleoverlay name=overlay ! videoconvert ! autovideosink  demux. ! "subpicture/x-dvd" ! queue2 ! overlay.
  * ]| This will play back the given Matroska file with h264 video and subpicture subtitles.
  * </refsect2>
  */
index f9fd38c..484efa2 100644 (file)
@@ -266,7 +266,7 @@ static const gchar *caps_strings[] = {
   "audio/x-wms", "audio/x-voxware", "video/sp5x", "video/vivo",
   "video/x-3ivx", "video/x-4xm", "video/x-apple-video", "video/x-camtasia",
   "video/x-cdxa", "video/x-cinepak", "video/x-cirrus-logic-accupak",
-  "video/x-compressed-yuv", "video/x-dirac", "video/x-dvd-subpicture",
+  "video/x-compressed-yuv", "video/x-dirac", "subpicture/x-dvd",
   "video/x-ffv", "video/x-flash-screen", "video/x-flash-video",
   "video/x-h261", "video/x-huffyuv", "video/x-intel-h263", "video/x-jpeg",
   "video/x-mjpeg", "video/x-mjpeg-b", "video/mpegts", "video/x-mng",