summaryrefslogtreecommitdiff
path: root/gst/pnm
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian.droege@collabora.co.uk>2009-09-13 19:17:15 +0200
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2009-09-13 19:17:15 +0200
commit751843ff86a2b3caa97a4c7cb175e44f70735ca3 (patch)
tree137b63bbe90c1aae5d18bd89b67f22ba7a145845 /gst/pnm
parent7f3e6f4965093f9a17e5c4e29f1bd9027ae953b8 (diff)
downloadgstreamer-plugins-bad-751843ff86a2b3caa97a4c7cb175e44f70735ca3.tar.gz
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.
Diffstat (limited to 'gst/pnm')
-rw-r--r--gst/pnm/gstpnmdec.c2
-rw-r--r--gst/pnm/gstpnmenc.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/gst/pnm/gstpnmdec.c b/gst/pnm/gstpnmdec.c
index b235113e5..d88f2955b 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 e15c70d6c..7c4537a30 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")) {