Utility functions

while you can use the regular gtk_object_getv () function to query the value of an object property, GStreamer provides some easy wrappers for this common operation.

Instead of writing the following Gtk+ code to query the GTK_STRING value of an object:

  GtkArg arg;
  guchar *value;

  arg.name = argname;
  gtk_object_getv (GTK_OBJECT (object), 1, &arg);
  value = GTK_VALUE_STRING (arg);
  

You can also use:

  value = gst_util_get_string_arg (object, argname);
  

These convenience functions exist for the following types:

There is also another utility function that can be used to dump a block of memory on the console. This function is very usefull for plugin developers. The function will dump size bytes of the memory pointed to by mem.

  void gst_util_dump_mem(guchar *mem, guint size);