Commit 50fa7dc2 authored by Benjamin Otte's avatar Benjamin Otte

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
parent 87034090
......@@ -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);
}
......@@ -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);
}
......@@ -68,8 +68,7 @@ int main(int argc,char *argv[])
gst_main();
gst_pipeline_destroy(thread);
gst_object_unref(GST_OBJECT(thread));
exit(0);
}
......@@ -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);
}
......@@ -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);
}
......@@ -68,8 +68,7 @@ int main(int argc,char *argv[])
gst_main();
gst_pipeline_destroy(thread);
gst_object_unref(GST_OBJECT(thread));
exit(0);
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment