projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0e40bc5
)
Changed to the new props API
author
Wim Taymans
<wim.taymans@gmail.com>
Sat, 30 Mar 2002 17:08:02 +0000
(17:08 +0000)
committer
Wim Taymans
<wim.taymans@gmail.com>
Sat, 30 Mar 2002 17:08:02 +0000
(17:08 +0000)
Original commit message from CVS:
Changed to the new props API
libs/gst/control/dparammanager.c
patch
|
blob
|
history
diff --git
a/libs/gst/control/dparammanager.c
b/libs/gst/control/dparammanager.c
index
0c5905c
..
7f9ae03
100644
(file)
--- a/
libs/gst/control/dparammanager.c
+++ b/
libs/gst/control/dparammanager.c
@@
-603,11
+603,14
@@
gst_dpman_state_change (GstElement *element, gint old_state, gint new_state, Gst
static void
gst_dpman_caps_changed (GstPad *pad, GstCaps *caps, GstDParamManager *dpman)
{
+ gint rate;
+
g_return_if_fail (caps != NULL);
g_return_if_fail (dpman != NULL);
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));
}