mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
ges-launch: Cleanup profile
This commit is contained in:
parent
45febdebe1
commit
5bc32ceb2b
1 changed files with 4 additions and 1 deletions
|
@ -378,6 +378,7 @@ main (int argc, gchar ** argv)
|
|||
GOptionContext *ctx;
|
||||
GMainLoop *mainloop;
|
||||
GstBus *bus;
|
||||
GstEncodingProfile *prof = NULL;
|
||||
|
||||
if (!g_thread_supported ())
|
||||
g_thread_init (NULL);
|
||||
|
@ -429,7 +430,6 @@ main (int argc, gchar ** argv)
|
|||
|
||||
/* Setup profile/encoding if needed */
|
||||
if (render || smartrender) {
|
||||
GstEncodingProfile *prof;
|
||||
prof = make_encoding_profile (audio, video, video_restriction, container);
|
||||
|
||||
if (!prof ||
|
||||
|
@ -457,5 +457,8 @@ main (int argc, gchar ** argv)
|
|||
|
||||
gst_element_set_state (GST_ELEMENT (pipeline), GST_STATE_NULL);
|
||||
|
||||
gst_object_unref (pipeline);
|
||||
gst_encoding_profile_free (prof);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue