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
This commit is contained in:
Benjamin Otte 2003-04-15 17:40:56 +00:00
parent 8703409089
commit 50fa7dc2cd
6 changed files with 12 additions and 16 deletions

View file

@ -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);
}

View file

@ -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);
}

View file

@ -68,8 +68,7 @@ int main(int argc,char *argv[])
gst_main();
gst_pipeline_destroy(thread);
gst_object_unref(GST_OBJECT(thread));
exit(0);
}

View file

@ -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);
}

View file

@ -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);
}

View file

@ -68,8 +68,7 @@ int main(int argc,char *argv[])
gst_main();
gst_pipeline_destroy(thread);
gst_object_unref(GST_OBJECT(thread));
exit(0);
}