summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMatthew Waters <ystreet00@gmail.com>2013-06-13 14:36:41 +1000
committerSebastian Dröge <slomo@circular-chaos.org>2013-06-29 10:08:57 +0200
commit705969775b00dc42f61a42a21f14e3b1111c373c (patch)
tree49e87a8f85af873e531b3e853f1d849a53edc1ec /tests
parentb01197f2afa51737a087e6c0d8d6e77ef202574c (diff)
Use gst_object_[un]ref so we can get refcounts in the log
Diffstat (limited to 'tests')
-rw-r--r--tests/check/libs/gstglmemory.c2
-rw-r--r--tests/examples/clutter/clutteractor.c2
-rw-r--r--tests/examples/clutter/clutteractortee.c2
-rw-r--r--tests/examples/clutter/cluttershare.c6
-rwxr-xr-xtests/examples/cocoa/videooverlay/main.m2
-rw-r--r--tests/examples/generic/cubeyuv/main.cpp2
-rw-r--r--tests/examples/generic/doublecube/main.cpp2
-rw-r--r--tests/examples/qt/mousevideooverlay/pipeline.cpp2
-rw-r--r--tests/examples/qt/qglwidgetvideooverlay/pipeline.cpp2
-rw-r--r--tests/examples/qt/qglwtextureshare/pipeline.cpp4
-rw-r--r--tests/examples/qt/videooverlay/pipeline.cpp2
-rw-r--r--tests/examples/sdl/sdlshare.c6
12 files changed, 17 insertions, 17 deletions
diff --git a/tests/check/libs/gstglmemory.c b/tests/check/libs/gstglmemory.c
index 86927dc..720a953 100644
--- a/tests/check/libs/gstglmemory.c
+++ b/tests/check/libs/gstglmemory.c
@@ -43,7 +43,7 @@ setup (void)
void
teardown (void)
{
- g_object_unref (display);
+ gst_object_unref (display);
}
GST_START_TEST (test_basic)
diff --git a/tests/examples/clutter/clutteractor.c b/tests/examples/clutter/clutteractor.c
index 41f73f7..69e4d87 100644
--- a/tests/examples/clutter/clutteractor.c
+++ b/tests/examples/clutter/clutteractor.c
@@ -170,7 +170,7 @@ main (int argc, char *argv[])
clutter_main ();
gst_element_set_state (GST_ELEMENT (pipeline), GST_STATE_NULL);
- g_object_unref (pipeline);
+ gst_object_unref (pipeline);
return 0;
}
diff --git a/tests/examples/clutter/clutteractortee.c b/tests/examples/clutter/clutteractortee.c
index f9349cd..97b1fcc 100644
--- a/tests/examples/clutter/clutteractortee.c
+++ b/tests/examples/clutter/clutteractortee.c
@@ -225,7 +225,7 @@ main (int argc, char *argv[])
clutter_main ();
gst_element_set_state (GST_ELEMENT (pipeline), GST_STATE_NULL);
- g_object_unref (pipeline);
+ gst_object_unref (pipeline);
return 0;
}
diff --git a/tests/examples/clutter/cluttershare.c b/tests/examples/clutter/cluttershare.c
index 0257515..b06b27b 100644
--- a/tests/examples/clutter/cluttershare.c
+++ b/tests/examples/clutter/cluttershare.c
@@ -298,7 +298,7 @@ main (int argc, char *argv[])
glfilter = gst_bin_get_by_name (GST_BIN (pipeline), "glfiltercube0");
g_object_set (G_OBJECT (glfilter), "external-opengl-context",
clutter_gl_context, NULL);
- g_object_unref (glfilter);
+ gst_object_unref (glfilter);
/* NULL to PAUSED state pipeline to make sure the gst opengl context is created and
* shared with the clutter one */
@@ -336,7 +336,7 @@ main (int argc, char *argv[])
g_object_set (G_OBJECT (fakesink), "signal-handoffs", TRUE, NULL);
g_signal_connect (fakesink, "handoff", G_CALLBACK (on_gst_buffer),
clutter_texture);
- g_object_unref (fakesink);
+ gst_object_unref (fakesink);
/* play gst */
gst_element_set_state (GST_ELEMENT (pipeline), GST_STATE_PLAYING);
@@ -357,7 +357,7 @@ main (int argc, char *argv[])
/* stop and clean up the pipeline */
gst_element_set_state (GST_ELEMENT (pipeline), GST_STATE_NULL);
- g_object_unref (pipeline);
+ gst_object_unref (pipeline);
/* make sure there is no pending gst gl buffer in the communication queues
* between clutter and gst-gl
diff --git a/tests/examples/cocoa/videooverlay/main.m b/tests/examples/cocoa/videooverlay/main.m
index 61e3af2..8815868 100755
--- a/tests/examples/cocoa/videooverlay/main.m
+++ b/tests/examples/cocoa/videooverlay/main.m
@@ -106,7 +106,7 @@ static void end_stream_cb(GstBus* bus, GstMessage* message, MainWindow* window)
g_print ("end of stream\n");
gst_element_set_state ([window pipeline], GST_STATE_NULL);
- g_object_unref ([window pipeline]);
+ gst_object_unref ([window pipeline]);
g_main_loop_quit ([window loop]);
[window performSelectorOnMainThread:@selector(customClose) withObject:nil waitUntilDone:YES];
diff --git a/tests/examples/generic/cubeyuv/main.cpp b/tests/examples/generic/cubeyuv/main.cpp
index 7209158..109c0cc 100644
--- a/tests/examples/generic/cubeyuv/main.cpp
+++ b/tests/examples/generic/cubeyuv/main.cpp
@@ -193,7 +193,7 @@ static void cb_new_pad (GstElement* decodebin, GstPad* pad, gboolean last, GstEl
//only link once
if (GST_PAD_IS_LINKED (identity_pad))
{
- g_object_unref (identity_pad);
+ gst_object_unref (identity_pad);
return;
}
diff --git a/tests/examples/generic/doublecube/main.cpp b/tests/examples/generic/doublecube/main.cpp
index 4e6fb30..84143d8 100644
--- a/tests/examples/generic/doublecube/main.cpp
+++ b/tests/examples/generic/doublecube/main.cpp
@@ -192,7 +192,7 @@ static void cb_new_pad (GstElement* decodebin, GstPad* pad, gboolean last, GstEl
//only link once
if (GST_PAD_IS_LINKED (identity_pad))
{
- g_object_unref (identity_pad);
+ gst_object_unref (identity_pad);
return;
}
diff --git a/tests/examples/qt/mousevideooverlay/pipeline.cpp b/tests/examples/qt/mousevideooverlay/pipeline.cpp
index 66a75ff..21a9a31 100644
--- a/tests/examples/qt/mousevideooverlay/pipeline.cpp
+++ b/tests/examples/qt/mousevideooverlay/pipeline.cpp
@@ -280,7 +280,7 @@ void Pipeline::cb_new_pad (GstElement* decodebin, GstPad* pad, gboolean last, Pi
//only link once
if (GST_PAD_IS_LINKED (glpad))
{
- g_object_unref (glpad);
+ gst_object_unref (glpad);
return;
}
diff --git a/tests/examples/qt/qglwidgetvideooverlay/pipeline.cpp b/tests/examples/qt/qglwidgetvideooverlay/pipeline.cpp
index 2d06a7b..5aaa1f8 100644
--- a/tests/examples/qt/qglwidgetvideooverlay/pipeline.cpp
+++ b/tests/examples/qt/qglwidgetvideooverlay/pipeline.cpp
@@ -284,7 +284,7 @@ void Pipeline::cb_new_pad (GstElement* decodebin, GstPad* pad, gboolean last, Pi
//only link once
if (GST_PAD_IS_LINKED (glpad))
{
- g_object_unref (glpad);
+ gst_object_unref (glpad);
return;
}
diff --git a/tests/examples/qt/qglwtextureshare/pipeline.cpp b/tests/examples/qt/qglwtextureshare/pipeline.cpp
index 53ce345..27412a9 100644
--- a/tests/examples/qt/qglwtextureshare/pipeline.cpp
+++ b/tests/examples/qt/qglwtextureshare/pipeline.cpp
@@ -83,7 +83,7 @@ Pipeline::configure()
}
g_object_set(G_OBJECT (gl_element), "external-opengl-context",
this->glctx.contextId, NULL);
- g_object_unref(gl_element);
+ gst_object_unref(gl_element);
gst_element_set_state(GST_ELEMENT(this->m_pipeline), GST_STATE_PAUSED);
GstState state = GST_STATE_PAUSED;
@@ -104,7 +104,7 @@ Pipeline::start()
"fakesink0");
g_object_set(G_OBJECT (fakesink), "signal-handoffs", TRUE, NULL);
g_signal_connect(fakesink, "handoff", G_CALLBACK (on_gst_buffer), this);
- g_object_unref(fakesink);
+ gst_object_unref(fakesink);
GstStateChangeReturn ret =
gst_element_set_state(GST_ELEMENT(this->m_pipeline), GST_STATE_PLAYING);
diff --git a/tests/examples/qt/videooverlay/pipeline.cpp b/tests/examples/qt/videooverlay/pipeline.cpp
index 4bcd15d..bc60c07 100644
--- a/tests/examples/qt/videooverlay/pipeline.cpp
+++ b/tests/examples/qt/videooverlay/pipeline.cpp
@@ -208,7 +208,7 @@ void Pipeline::cb_new_pad (GstElement* decodebin, GstPad* pad, gboolean last, Gs
//only link once
if (GST_PAD_IS_LINKED (glpad))
{
- g_object_unref (glpad);
+ gst_object_unref (glpad);
return;
}
diff --git a/tests/examples/sdl/sdlshare.c b/tests/examples/sdl/sdlshare.c
index ee40c92..62c2099 100644
--- a/tests/examples/sdl/sdlshare.c
+++ b/tests/examples/sdl/sdlshare.c
@@ -307,7 +307,7 @@ main (int argc, char **argv)
glfilter = gst_bin_get_by_name (GST_BIN (pipeline), "gleffects0");
g_object_set (G_OBJECT (glfilter), "external-opengl-context",
sdl_gl_context, NULL);
- g_object_unref (glfilter);
+ gst_object_unref (glfilter);
/* NULL to PAUSED state pipeline to make sure the gst opengl context is created and
* shared with the sdl one */
@@ -335,7 +335,7 @@ main (int argc, char **argv)
g_object_set_data (G_OBJECT (fakesink), "queue_input_buf", queue_input_buf);
g_object_set_data (G_OBJECT (fakesink), "queue_output_buf", queue_output_buf);
g_object_set_data (G_OBJECT (fakesink), "loop", loop);
- g_object_unref (fakesink);
+ gst_object_unref (fakesink);
gst_element_set_state (GST_ELEMENT (pipeline), GST_STATE_PLAYING);
@@ -351,7 +351,7 @@ main (int argc, char **argv)
#endif
gst_element_set_state (GST_ELEMENT (pipeline), GST_STATE_NULL);
- g_object_unref (pipeline);
+ gst_object_unref (pipeline);
/* turn on back sdl opengl context */
#ifdef WIN32