From: Benjamin Otte Date: Tue, 15 Apr 2003 17:40:56 +0000 (+0000) Subject: destroyed gst_*_destroy in the examples - use gst_object_unref instead X-Git-Tag: BRANCH-ERROR-ROOT~310 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=50fa7dc2cd24d4998e13ec442a0b5917bb051d35;p=platform%2Fupstream%2Fgstreamer.git destroyed gst_*_destroy in the examples - use gst_object_unref instead Original commit message from CVS: destroyed gst_*_destroy in the examples - use gst_object_unref instead --- diff --git a/examples/cutter/cutter.c b/examples/cutter/cutter.c index 025a2d9..f22a441 100644 --- a/examples/cutter/cutter.c +++ b/examples/cutter/cutter.c @@ -196,8 +196,8 @@ int main (int argc, char *argv[]) gst_element_set_state (main_bin, GST_STATE_NULL); - gst_object_destroy (GST_OBJECT (disksink)); - gst_object_destroy (GST_OBJECT (main_bin)); + gst_object_unref (GST_OBJECT (disksink)); + gst_object_unref (GST_OBJECT (main_bin)); exit(0); } diff --git a/examples/mixer/mixer.c b/examples/mixer/mixer.c index e786743..31358d8 100644 --- a/examples/mixer/mixer.c +++ b/examples/mixer/mixer.c @@ -218,9 +218,9 @@ int main(int argc,char *argv[]) } g_list_free (input_channels); - gst_object_destroy(GST_OBJECT(audiosink)); + gst_object_unref(GST_OBJECT(audiosink)); - gst_object_destroy(GST_OBJECT(main_bin)); + gst_object_unref(GST_OBJECT(main_bin)); exit(0); } @@ -393,7 +393,7 @@ destroy_input_channel (input_channel_t *channel) /* destroy elements */ - gst_object_destroy (GST_OBJECT (channel->pipe)); + gst_object_unref (GST_OBJECT (channel->pipe)); free (channel); } @@ -406,4 +406,3 @@ void env_register_cp (GstElement *volenv, double cp_time, double cp_level) g_object_set(G_OBJECT(volenv), "controlpoint", buffer, NULL); } - diff --git a/examples/thread/thread.c b/examples/thread/thread.c index b16d5aa..f47deca 100644 --- a/examples/thread/thread.c +++ b/examples/thread/thread.c @@ -68,8 +68,7 @@ int main(int argc,char *argv[]) gst_main(); - gst_pipeline_destroy(thread); + gst_object_unref(GST_OBJECT(thread)); exit(0); } - diff --git a/tests/old/examples/cutter/cutter.c b/tests/old/examples/cutter/cutter.c index 025a2d9..f22a441 100644 --- a/tests/old/examples/cutter/cutter.c +++ b/tests/old/examples/cutter/cutter.c @@ -196,8 +196,8 @@ int main (int argc, char *argv[]) gst_element_set_state (main_bin, GST_STATE_NULL); - gst_object_destroy (GST_OBJECT (disksink)); - gst_object_destroy (GST_OBJECT (main_bin)); + gst_object_unref (GST_OBJECT (disksink)); + gst_object_unref (GST_OBJECT (main_bin)); exit(0); } diff --git a/tests/old/examples/mixer/mixer.c b/tests/old/examples/mixer/mixer.c index e786743..31358d8 100644 --- a/tests/old/examples/mixer/mixer.c +++ b/tests/old/examples/mixer/mixer.c @@ -218,9 +218,9 @@ int main(int argc,char *argv[]) } g_list_free (input_channels); - gst_object_destroy(GST_OBJECT(audiosink)); + gst_object_unref(GST_OBJECT(audiosink)); - gst_object_destroy(GST_OBJECT(main_bin)); + gst_object_unref(GST_OBJECT(main_bin)); exit(0); } @@ -393,7 +393,7 @@ destroy_input_channel (input_channel_t *channel) /* destroy elements */ - gst_object_destroy (GST_OBJECT (channel->pipe)); + gst_object_unref (GST_OBJECT (channel->pipe)); free (channel); } @@ -406,4 +406,3 @@ void env_register_cp (GstElement *volenv, double cp_time, double cp_level) g_object_set(G_OBJECT(volenv), "controlpoint", buffer, NULL); } - diff --git a/tests/old/examples/thread/thread.c b/tests/old/examples/thread/thread.c index b16d5aa..f47deca 100644 --- a/tests/old/examples/thread/thread.c +++ b/tests/old/examples/thread/thread.c @@ -68,8 +68,7 @@ int main(int argc,char *argv[]) gst_main(); - gst_pipeline_destroy(thread); + gst_object_unref(GST_OBJECT(thread)); exit(0); } -