Parse the format as a fourcc
authorWim Taymans <wim.taymans@gmail.com>
Fri, 26 Jul 2002 20:27:01 +0000 (20:27 +0000)
committerWim Taymans <wim.taymans@gmail.com>
Fri, 26 Jul 2002 20:27:01 +0000 (20:27 +0000)
Original commit message from CVS:
Parse the format as a fourcc

gst/videoscale/gstvideoscale.c
gst/videoscale/gstvideoscale.h

index 8850ae9..dfb73b7 100644 (file)
@@ -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);
 
index 0530533..c70baea 100644 (file)
@@ -58,7 +58,7 @@ struct _GstVideoscale {
   GstPad *sinkpad,*srcpad;
 
   /* video state */
-  gint format;
+  guint32 format;
   gint width;
   gint height;
   gint targetwidth;