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.
This commit is contained in:
Sebastian Dröge 2009-09-13 19:17:15 +02:00
parent 7f3e6f4965
commit 751843ff86
2 changed files with 3 additions and 3 deletions

View file

@ -52,7 +52,7 @@ static GstStaticPadTemplate gst_pnmdec_src_pad_template =
GST_STATIC_CAPS (GST_VIDEO_CAPS_RGB "; " GST_STATIC_CAPS (GST_VIDEO_CAPS_RGB "; "
"video/x-raw-gray, width =" GST_VIDEO_SIZE_RANGE ", " "video/x-raw-gray, width =" GST_VIDEO_SIZE_RANGE ", "
"height =" GST_VIDEO_SIZE_RANGE ", framerate =" GST_VIDEO_FPS_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 = static GstStaticPadTemplate gst_pnmdec_sink_pad_template =
GST_STATIC_PAD_TEMPLATE ("sink", GST_PAD_SINK, GST_PAD_ALWAYS, GST_STATIC_PAD_TEMPLATE ("sink", GST_PAD_SINK, GST_PAD_ALWAYS,

View file

@ -51,7 +51,7 @@ static GstStaticPadTemplate sink_pad_template =
GST_STATIC_CAPS (GST_VIDEO_CAPS_RGB "; " GST_STATIC_CAPS (GST_VIDEO_CAPS_RGB "; "
"video/x-raw-gray, width =" GST_VIDEO_SIZE_RANGE ", " "video/x-raw-gray, width =" GST_VIDEO_SIZE_RANGE ", "
"height =" GST_VIDEO_SIZE_RANGE ", framerate =" GST_VIDEO_FPS_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 = static GstStaticPadTemplate src_pad_template =
GST_STATIC_PAD_TEMPLATE ("src", GST_PAD_SRC, GST_PAD_ALWAYS, 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; s->info.fields = GST_PNM_INFO_FIELDS_MAX;
/* Set caps on the source. */ /* 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; s->info.type = GST_PNM_TYPE_PIXMAP_RAW;
srccaps = gst_caps_from_string (MIME_PM); srccaps = gst_caps_from_string (MIME_PM);
} else if (!strcmp (mime, "video/x-raw-gray")) { } else if (!strcmp (mime, "video/x-raw-gray")) {