summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2017-05-15 14:22:34 +0300
committerSebastian Dröge <sebastian@centricular.com>2017-05-17 10:41:01 +0300
commitdefbe06d0e4231df1a4c999758ecad02f6be7537 (patch)
tree62d472b0f64c139da06bc8bc74d84c6acf717448
parentbd2ce0fb67b853b6bbdea398ed177c7ccbe9a64d (diff)
1394: Sink the clock reference in the constructor
This is now needed as GstClock does not do that internally anymore, because that broke bindings. https://bugzilla.gnome.org/show_bug.cgi?id=743062
-rw-r--r--ext/raw1394/gst1394clock.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/raw1394/gst1394clock.c b/ext/raw1394/gst1394clock.c
index 977ba00b3..9a3411dd4 100644
--- a/ext/raw1394/gst1394clock.c
+++ b/ext/raw1394/gst1394clock.c
@@ -100,6 +100,9 @@ gst_1394_clock_new (const gchar * name)
GST_1394_CLOCK (g_object_new (GST_TYPE_1394_CLOCK, "name", name,
"clock-type", GST_CLOCK_TYPE_OTHER, NULL));
+ /* Clear floating flag */
+ gst_object_ref_sink (_1394clock);
+
return _1394clock;
}