From db77f68c5b4ae88da419f43c9396747bd84b9a34 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Fri, 26 Jul 2002 20:27:01 +0000 Subject: [PATCH] Parse the format as a fourcc Original commit message from CVS: Parse the format as a fourcc --- gst/videoscale/gstvideoscale.c | 2 +- gst/videoscale/gstvideoscale.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gst/videoscale/gstvideoscale.c b/gst/videoscale/gstvideoscale.c index 8850ae9afb..dfb73b77d5 100644 --- a/gst/videoscale/gstvideoscale.c +++ b/gst/videoscale/gstvideoscale.c @@ -191,9 +191,9 @@ gst_videoscale_sinkconnect (GstPad *pad, GstCaps *caps) return GST_PAD_CONNECT_DELAYED; } + gst_caps_get_fourcc_int (caps, "format", &videoscale->format); gst_caps_get_int (caps, "width", &videoscale->width); gst_caps_get_int (caps, "height", &videoscale->height); - gst_caps_get_int (caps, "format", &videoscale->format); gst_videoscale_setup(videoscale); diff --git a/gst/videoscale/gstvideoscale.h b/gst/videoscale/gstvideoscale.h index 05305334e9..c70baea186 100644 --- a/gst/videoscale/gstvideoscale.h +++ b/gst/videoscale/gstvideoscale.h @@ -58,7 +58,7 @@ struct _GstVideoscale { GstPad *sinkpad,*srcpad; /* video state */ - gint format; + guint32 format; gint width; gint height; gint targetwidth;