sys/oss/: advertise correct template caps - we indeed do non-native endianness and...
authorBenjamin Otte <otte@gnome.org>
Tue, 29 Jun 2004 11:20:25 +0000 (11:20 +0000)
committerBenjamin Otte <otte@gnome.org>
Tue, 29 Jun 2004 11:20:25 +0000 (11:20 +0000)
Original commit message from CVS:
* sys/oss/gstosssink.c:
* sys/oss/gstosssrc.c:
advertise correct template caps - we indeed do non-native endianness
and 8bit audio has no endianness
* sys/ximage/ximagesink.c: (gst_ximagesink_getcaps):
* sys/xvimage/xvimagesink.c: (gst_xvimagesink_getcaps):
avoid (wrong) duplications in getcaps function and return
template caps

ChangeLog
sys/ximage/ximagesink.c
sys/xvimage/xvimagesink.c

index bc2406e..5719de3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2004-06-29  Benjamin Otte  <otte@gnome.org>
+
+       * sys/oss/gstosssink.c:
+       * sys/oss/gstosssrc.c:
+         advertise correct template caps - we indeed do non-native endianness
+         and 8bit audio has no endianness
+       * sys/ximage/ximagesink.c: (gst_ximagesink_getcaps):
+       * sys/xvimage/xvimagesink.c: (gst_xvimagesink_getcaps):
+         avoid (wrong) duplications in getcaps function and return
+         template caps
+
 2004-06-29  Wim Taymans  <wim@fluendo.com>
 
        * gst/tcp/gstmultifdsink.c: (gst_recover_policy_get_type),
index af6eff3..538996e 100644 (file)
@@ -787,9 +787,7 @@ gst_ximagesink_getcaps (GstPad * pad)
   if (ximagesink->xcontext)
     return gst_caps_copy (ximagesink->xcontext->caps);
 
-  return gst_caps_from_string ("video/x-raw-rgb, "
-      "framerate = (double) [ 1, 100 ], "
-      "width = (int) [ 0, MAX ], " "height = (int) [ 0, MAX ]");
+  return gst_caps_copy (gst_pad_get_pad_template_caps (pad));
 }
 
 static GstPadLinkReturn
index 845ff55..0c940fd 100644 (file)
@@ -1058,13 +1058,7 @@ gst_xvimagesink_getcaps (GstPad * pad)
   if (xvimagesink->xcontext)
     return gst_caps_copy (xvimagesink->xcontext->caps);
 
-  return gst_caps_from_string ("video/x-raw-rgb, "
-      "framerate = (double) [ 1.0, 100.0 ], "
-      "width = (int) [ 0, MAX ], "
-      "height = (int) [ 0, MAX ]; "
-      "video/x-raw-yuv, "
-      "framerate = (double) [ 0, MAX ], "
-      "width = (int) [ 0, MAX ], " "height = (int) [ 0, MAX ]");
+  return gst_caps_copy (gst_pad_get_pad_template_caps (pad));
 }
 
 static GstPadLinkReturn