Changed to the new props API

Original commit message from CVS:
Changed to the new props API
This commit is contained in:
Wim Taymans 2002-03-30 17:08:02 +00:00
parent 0e40bc56b6
commit 2686e1b6e0

View file

@ -603,11 +603,14 @@ gst_dpman_state_change (GstElement *element, gint old_state, gint new_state, Gst
static void static void
gst_dpman_caps_changed (GstPad *pad, GstCaps *caps, GstDParamManager *dpman) gst_dpman_caps_changed (GstPad *pad, GstCaps *caps, GstDParamManager *dpman)
{ {
gint rate;
g_return_if_fail (caps != NULL); g_return_if_fail (caps != NULL);
g_return_if_fail (dpman != NULL); g_return_if_fail (dpman != NULL);
g_return_if_fail (GST_IS_DPMAN (dpman)); g_return_if_fail (GST_IS_DPMAN (dpman));
GST_DPMAN_RATE(dpman) = gst_caps_get_int (caps, "rate"); gst_caps_get_int (caps, "rate", &rate);
GST_DPMAN_RATE(dpman) = rate;
GST_DEBUG(GST_CAT_PARAMS, "got caps change %d", GST_DPMAN_RATE(dpman)); GST_DEBUG(GST_CAT_PARAMS, "got caps change %d", GST_DPMAN_RATE(dpman));
} }