[MOVED FROM BAD] Changed to the new props API
authorWim Taymans <wim.taymans@gmail.com>
Sat, 30 Mar 2002 17:06:26 +0000 (17:06 +0000)
committerJan Schmidt <thaytan@noraisin.net>
Fri, 15 May 2009 22:35:03 +0000 (23:35 +0100)
Original commit message from CVS:
Changed to the new props API
Other small tuff.

gst/y4m/gsty4mencode.c

index 900888f..9e99dc5 100644 (file)
@@ -125,8 +125,8 @@ gst_lavencode_sinkconnect (GstPad *pad, GstCaps *caps)
   if (!GST_CAPS_IS_FIXED (caps))
     return GST_PAD_CONNECT_DELAYED;
 
-  filter->width = gst_caps_get_int (caps, "width");
-  filter->height = gst_caps_get_int (caps, "height");
+  gst_caps_get_int (caps, "width", &filter->width);
+  gst_caps_get_int (caps, "height", &filter->height);
 
   return GST_PAD_CONNECT_OK;
 }