ges-launch: Cleanup profile

This commit is contained in:
Edward Hervey 2010-06-17 11:45:27 +02:00
parent 45febdebe1
commit 5bc32ceb2b

View file

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