~ubuntu-branches/ubuntu/trusty/gstreamer1.0/trusty-proposed

« back to all changes in this revision

Viewing changes to gst/gstobject.c

  • Committer: Package Import Robot
  • Author(s): Sebastian Dröge
  • Date: 2012-08-08 18:12:33 UTC
  • mfrom: (1.1.3)
  • Revision ID: package-import@ubuntu.com-20120808181233-riejwxprfsxh1njl
Tags: 0.11.93-1
* New upstream release:
  + debian/libgstreamer.symbols:
    - Update symbols file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
229
229
 
230
230
/**
231
231
 * gst_object_ref:
232
 
 * @object: a #GstObject to reference
 
232
 * @object: (type Gst.Object): a #GstObject to reference
233
233
 *
234
234
 * Increments the reference count on @object. This function
235
235
 * does not take the lock on @object because it relies on
239
239
 * constructs like :
240
240
 *  result = gst_object_ref (object->parent);
241
241
 *
242
 
 * Returns: (transfer full): A pointer to @object
 
242
 * Returns: (transfer full) (type Gst.Object): A pointer to @object
243
243
 */
244
244
gpointer
245
245
gst_object_ref (gpointer object)
257
257
 
258
258
/**
259
259
 * gst_object_unref:
260
 
 * @object: a #GstObject to unreference
 
260
 * @object: (type Gst.Object): a #GstObject to unreference
261
261
 *
262
262
 * Decrements the reference count on @object.  If reference count hits
263
263
 * zero, destroy @object. This function does not take the lock
478
478
 * @orig: a #GstObject that initiated the notify.
479
479
 * @pspec: a #GParamSpec of the property.
480
480
 * @excluded_props: (array zero-terminated=1) (element-type gchar*)
481
 
 *     (allow-none):a set of user-specified properties to exclude or
 
481
 *     (allow-none): a set of user-specified properties to exclude or
482
482
 *     NULL to show all changes.
483
483
 *
484
484
 * A default deep_notify signal callback for an object. The user data
507
507
    g_value_init (&value, pspec->value_type);
508
508
    g_object_get_property (G_OBJECT (orig), pspec->name, &value);
509
509
 
510
 
    /* FIXME: handle flags */
511
 
    if (G_IS_PARAM_SPEC_ENUM (pspec)) {
512
 
      GEnumValue *enum_value;
513
 
      GEnumClass *klass = G_ENUM_CLASS (g_type_class_ref (pspec->value_type));
514
 
 
515
 
      enum_value = g_enum_get_value (klass, g_value_get_enum (&value));
516
 
 
517
 
      str = g_strdup_printf ("%s (%d)", enum_value->value_nick,
518
 
          enum_value->value);
519
 
      g_type_class_unref (klass);
520
 
    } else {
521
 
      str = g_strdup_value_contents (&value);
522
 
    }
 
510
    str = gst_value_serialize (&value);
523
511
    name = gst_object_get_path_string (orig);
524
512
    g_print ("%s: %s = %s\n", name, pspec->name, str);
525
513
    g_free (name);