diff options
author | Steve Baker <steve@stevebaker.org> | 2001-10-07 09:41:08 +0000 |
---|---|---|
committer | Steve Baker <steve@stevebaker.org> | 2001-10-07 09:41:08 +0000 |
commit | a2107db69a60b2809352854a3c354cd7b8fec904 (patch) | |
tree | 165642ed93a8ca3361fc92368f197e0493b90581 | |
parent | ef1473b443320f46235d414cdc0741d18f5915a9 (diff) | |
download | gstreamer-a2107db69a60b2809352854a3c354cd7b8fec904.tar.gz |
remove ability to set dparams from -launch. this is the only real loss of functionality from moving dparams out of co...
Original commit message from CVS:
remove ability to set dparams from -launch. this is the only real loss of functionality from moving dparams out of core. Maybe I'll make the parser pluggable ;)
-rw-r--r-- | gst/gstparse.c | 30 |
1 files changed, 4 insertions, 26 deletions
diff --git a/gst/gstparse.c b/gst/gstparse.c index 67e823a1a8..cf7fc1ff1f 100644 --- a/gst/gstparse.c +++ b/gst/gstparse.c @@ -236,32 +236,10 @@ gst_parse_launch_cmdline(int argc,char *argv[],GstBin *parent,gst_parse_priv *pr pos[0] = '\0'; argval = pos+1; - // parse dparams values - if (strstr(arg, "@") == arg){ - GstDParamManager *dpman; - GstDParam *dparam; - GType dparam_type; - - argname++; - GST_DEBUG(0,"attempting to set dynamic param '%s' to '%s' on element '%s'\n", - argname,argval,GST_ELEMENT_NAME(previous)); - - dpman = GST_ELEMENT_DPARAM_MANAGER(previous); - dparam_type = gst_dpman_get_dparam_type(dpman, argname); - if (dparam_type > 0){ - gst_dpman_set_mode(dpman, "synchronous"); - dparam = gst_dparam_new(dparam_type); - gst_dpman_attach_dparam (dpman, argname, dparam); - gst_dparam_set_value_from_string(GST_DPARAM_GET_POINT(dparam, 0LL)[0], argval); - GST_DPARAM_READY_FOR_UPDATE(dparam) = TRUE; - } - - } else { - GST_DEBUG(0,"attempting to set argument '%s' to '%s' on element '%s'\n", - argname,argval,GST_ELEMENT_NAME(previous)); - gst_util_set_object_arg (G_OBJECT(previous), argname, argval); - g_free(argname); - } + GST_DEBUG(0,"attempting to set argument '%s' to '%s' on element '%s'\n", + argname,argval,GST_ELEMENT_NAME(previous)); + gst_util_set_object_arg (G_OBJECT(previous), argname, argval); + g_free(argname); // element or argument, or beginning of bin or thread } else if (arg[0] == '[') { |