Contrary to what gstremear's doc says, gst_deinit() does not clean what
authordoursse <doursse>
Tue, 13 May 2008 20:50:34 +0000 (20:50 +0000)
committerdoursse <doursse@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 13 May 2008 20:50:34 +0000 (20:50 +0000)
gst_init() allocates. Hence, 2 calls of the couple gst_init() / gst_deinit()
fail miserabily. Gstreamer's dev says that the exported function gst_deinit()
should not be called, so let's remove it...

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/e17/libs/emotion@34560 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/modules/gstreamer/emotion_gstreamer.c

index dd8a5a9..f524fb4 100644 (file)
@@ -303,7 +303,6 @@ em_init(Evas_Object  *obj,
    gst_element_set_state (ev->pipeline, GST_STATE_NULL);
    gst_object_unref (GST_OBJECT (ev->pipeline));
  failure_pipeline:
-   gst_deinit ();
  failure_gstreamer:
    free (ev);
 
@@ -322,7 +321,6 @@ em_shutdown(void *video)
    gst_element_set_state (ev->pipeline, GST_STATE_NULL);
    gst_object_unref (GST_OBJECT (ev->pipeline));
    gst_object_unref (GST_OBJECT (ev->eos_bus));
-   gst_deinit ();
 
    ecore_list_destroy (ev->video_sinks);
    ecore_list_destroy (ev->audio_sinks);