New mimetypes gone into effect today - this commit changes all old mimetypes over...
authorRonald S. Bultje <rbultje@ronald.bitfreak.net>
Sun, 6 Jul 2003 20:49:52 +0000 (20:49 +0000)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Sun, 2 Jan 2011 14:30:03 +0000 (14:30 +0000)
Original commit message from CVS:
New mimetypes gone into effect today - this commit changes all old mimetypes over to the new mimetypes spec as described in the previous commit's document. Note: some plugins will break, some pipelines will break, expect HEAD to be broken or at least not 100% working for a few days, but don't forget to report bugs

ext/jack/gstjack.c

index 8db6c56..700cf0a 100644 (file)
@@ -167,11 +167,14 @@ gst_jack_src_request_pad_factory(void)
 {
     static GstPadTemplate *template = NULL;
     
-    if (!template)
-        template = gst_pad_template_new("%s", GST_PAD_SRC, GST_PAD_REQUEST, 
-                                       gst_caps_new("src", "audio/raw",
-                                                    GST_AUDIO_FLOAT_MONO_PAD_TEMPLATE_PROPS),
-                                       NULL);
+    if (!template) {
+       GstCaps *caps;
+       caps = gst_caps_new("src",
+                           "audio/x-raw-float",
+                            GST_AUDIO_FLOAT_MONO_PAD_TEMPLATE_PROPS);
+        template = gst_pad_template_new("%s", GST_PAD_SRC,
+                                       GST_PAD_REQUEST, caps, NULL);
+    }
     
     return template;
 }
@@ -181,11 +184,14 @@ gst_jack_sink_request_pad_factory(void)
 {
     static GstPadTemplate *template = NULL;
     
-    if (!template)
-        template = gst_pad_template_new("%s", GST_PAD_SINK, GST_PAD_REQUEST, 
-                                       gst_caps_new("sink", "audio/raw",
-                                                    GST_AUDIO_FLOAT_MONO_PAD_TEMPLATE_PROPS),
-                                       NULL);
+    if (!template) {
+       GstCaps *caps;
+       caps = gst_caps_new ("sink",
+                            "audio/x-raw-float",
+                             GST_AUDIO_FLOAT_MONO_PAD_TEMPLATE_PROPS);
+        template = gst_pad_template_new("%s", GST_PAD_SINK,
+                                       GST_PAD_REQUEST, caps, NULL);
+    }
     
     return template;
 }