gnomemm r1770 - in gstreamermm/trunk: . gstreamer/gstreamermm
- From: jaalburqu svn gnome org
- To: svn-commits-list gnome org
- Subject: gnomemm r1770 - in gstreamermm/trunk: . gstreamer/gstreamermm
- Date: Wed, 5 Nov 2008 04:15:52 +0000 (UTC)
Author: jaalburqu
Date: Wed Nov 5 04:15:52 2008
New Revision: 1770
URL: http://svn.gnome.org/viewvc/gnomemm?rev=1770&view=rev
Log:
2008-11-04 Josà Alburquerque <jaalburqu svn gnome org>
* gstreamer/gstreamermm/object.cc: Fix the floating reference aversion
code so that it checks that the GstObject is floating before
referencing it and then sinking it.
Modified:
gstreamermm/trunk/ChangeLog
gstreamermm/trunk/gstreamer/gstreamermm/object.cc
Modified: gstreamermm/trunk/gstreamer/gstreamermm/object.cc
==============================================================================
--- gstreamermm/trunk/gstreamer/gstreamermm/object.cc (original)
+++ gstreamermm/trunk/gstreamer/gstreamermm/object.cc Wed Nov 5 04:15:52 2008
@@ -78,10 +78,13 @@
:
Glib::Object((GObject*)(castitem))
{
- //The floating reference is convenience for C,
- //but is useless and difficult for us:
- gst_object_ref(gobj());
- gst_object_sink(gobj());
+ if(GST_OBJECT_IS_FLOATING(castitem))
+ {
+ //The floating reference is convenience for C,
+ //but is useless and difficult for us:
+ gst_object_ref(gobj());
+ gst_object_sink(gobj());
+ }
}
Object::~Object()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]