diff options
author | George Kiagiadakis <george.kiagiadakis@collabora.com> | 2014-04-13 22:53:25 +0200 |
---|---|---|
committer | George Kiagiadakis <george.kiagiadakis@collabora.com> | 2014-05-03 22:31:37 +0300 |
commit | bdbd2bb380235b788c5d184a77fb2fc6074e0411 (patch) | |
tree | fff3f7b081b79e7294064749c03c1a59fd7a3051 | |
parent | 84ca350eb0144174f314d187685ec26aabea1960 (diff) |
tests/auto/refpointertest: use gst_object_ref_sink everywhere needed
commit 57e73d21d2cd9068180b6138bbf104657cc5968d removed gst_object_sink calls
and commit 7bd58f2694b107f5385021194a5828c5c9843a80 replaced one of them
with gst_object_ref_sink, but the others needed to be fixed as well...
-rw-r--r-- | tests/auto/refpointertest.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/auto/refpointertest.cpp b/tests/auto/refpointertest.cpp index 9809fca..7a509b7 100644 --- a/tests/auto/refpointertest.cpp +++ b/tests/auto/refpointertest.cpp @@ -70,7 +70,7 @@ void RefPointerTest::refTest2() void RefPointerTest::dynamicCastTest() { - GstObject *bin = GST_OBJECT(gst_object_ref(GST_OBJECT(gst_bin_new(NULL)))); + GstObject *bin = GST_OBJECT(gst_object_ref_sink(GST_OBJECT(gst_bin_new(NULL)))); { QGst::ObjectPtr object = QGst::ObjectPtr::wrap(bin); @@ -87,7 +87,7 @@ void RefPointerTest::dynamicCastTest() void RefPointerTest::dynamicCastDownObjectTest() { - GstObject *bin = GST_OBJECT(gst_object_ref(gst_bin_new(NULL))); + GstObject *bin = GST_OBJECT(gst_object_ref_sink(gst_bin_new(NULL))); { QGlib::ObjectPtr object = QGlib::ObjectPtr::wrap(G_OBJECT(bin)); @@ -101,7 +101,7 @@ void RefPointerTest::dynamicCastDownObjectTest() void RefPointerTest::dynamicCastUpObjectTest() { - GstBin *bin = GST_BIN(gst_object_ref(gst_bin_new(NULL))); + GstBin *bin = GST_BIN(gst_object_ref_sink(gst_bin_new(NULL))); { QGst::BinPtr object = QGst::BinPtr::wrap(bin); |