[gst-cvs] gst-plugins-bad: pnm: Fix caps

Sebastian Dröge slomo at kemper.freedesktop.org
Sun Sep 13 10:18:03 PDT 2009


Module: gst-plugins-bad
Branch: master
Commit: 751843ff86a2b3caa97a4c7cb175e44f70735ca3
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/commit/?id=751843ff86a2b3caa97a4c7cb175e44f70735ca3

Author: Sebastian Dröge <sebastian.droege at collabora.co.uk>
Date:   Sun Sep 13 19:17:15 2009 +0200

pnm: Fix caps

8 bit grayscale caps have no endianness field and the caps name
of GST_VIDEO_CAPS_RGB is still "video/x-raw-rgb" and not GST_VIDEO_CAPS_RGB.

---

 gst/pnm/gstpnmdec.c |    2 +-
 gst/pnm/gstpnmenc.c |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/gst/pnm/gstpnmdec.c b/gst/pnm/gstpnmdec.c
index b235113..d88f295 100644
--- a/gst/pnm/gstpnmdec.c
+++ b/gst/pnm/gstpnmdec.c
@@ -52,7 +52,7 @@ static GstStaticPadTemplate gst_pnmdec_src_pad_template =
     GST_STATIC_CAPS (GST_VIDEO_CAPS_RGB "; "
         "video/x-raw-gray, width =" GST_VIDEO_SIZE_RANGE ", "
         "height =" GST_VIDEO_SIZE_RANGE ", framerate =" GST_VIDEO_FPS_RANGE ", "
-        "bpp= (int) 8, depth= (int) 8, endianness = (int) BIG_ENDIAN"));
+        "bpp= (int) 8, depth= (int) 8"));
 
 static GstStaticPadTemplate gst_pnmdec_sink_pad_template =
 GST_STATIC_PAD_TEMPLATE ("sink", GST_PAD_SINK, GST_PAD_ALWAYS,
diff --git a/gst/pnm/gstpnmenc.c b/gst/pnm/gstpnmenc.c
index e15c70d..7c4537a 100644
--- a/gst/pnm/gstpnmenc.c
+++ b/gst/pnm/gstpnmenc.c
@@ -51,7 +51,7 @@ static GstStaticPadTemplate sink_pad_template =
     GST_STATIC_CAPS (GST_VIDEO_CAPS_RGB "; "
         "video/x-raw-gray, width =" GST_VIDEO_SIZE_RANGE ", "
         "height =" GST_VIDEO_SIZE_RANGE ", framerate =" GST_VIDEO_FPS_RANGE ", "
-        "bpp= (int) 8, depth= (int) 8, endianness = (int) BIG_ENDIAN"));
+        "bpp= (int) 8, depth= (int) 8"));
 
 static GstStaticPadTemplate src_pad_template =
 GST_STATIC_PAD_TEMPLATE ("src", GST_PAD_SRC, GST_PAD_ALWAYS,
@@ -103,7 +103,7 @@ gst_pnmenc_setcaps_func_sink (GstPad * pad, GstCaps * caps)
   s->info.fields = GST_PNM_INFO_FIELDS_MAX;
 
   /* Set caps on the source. */
-  if (!strcmp (mime, GST_VIDEO_CAPS_RGB)) {
+  if (!strcmp (mime, "video/x-raw-rgb")) {
     s->info.type = GST_PNM_TYPE_PIXMAP_RAW;
     srccaps = gst_caps_from_string (MIME_PM);
   } else if (!strcmp (mime, "video/x-raw-gray")) {





More information about the Gstreamer-commits mailing list