mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 00:36:51 +00:00
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:
parent
8703409089
commit
50fa7dc2cd
6 changed files with 12 additions and 16 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue