On Fri, 24 Jun 2011, Enlightenment SVN wrote:
> Log: > emotion: fix shutdown of gstreamer plugin. > > > Author: cedric > Date: 2011-06-24 07:52:59 -0700 (Fri, 24 Jun 2011) > New Revision: 60666 > Trac: http://trac.enlightenment.org/e/changeset/60666 > > Modified: > trunk/emotion/src/modules/gstreamer/emotion_gstreamer.c > > Modified: trunk/emotion/src/modules/gstreamer/emotion_gstreamer.c > =================================================================== > --- trunk/emotion/src/modules/gstreamer/emotion_gstreamer.c 2011-06-24 > 14:11:24 UTC (rev 60665) > +++ trunk/emotion/src/modules/gstreamer/emotion_gstreamer.c 2011-06-24 > 14:52:59 UTC (rev 60666) > @@ -353,13 +353,18 @@ > if (!ev) > return 0; > > + if (ev->pipeline) > + { > + gst_element_set_state(ev->pipeline, GST_STATE_NULL); > + gst_object_unref(ev->pipeline); > + ev->pipeline = NULL; > + } try to launch emotion_test with a wrong named file Vincent > + > EINA_LIST_FREE(ev->audio_streams, astream) > free(astream); > EINA_LIST_FREE(ev->video_streams, vstream) > free(vstream); > > - gst_deinit(); > - > free(ev); > > return 1; > @@ -670,6 +675,12 @@ > if (!ev) > return; > > + if (ev->eos_bus) > + { > + gst_object_unref(GST_OBJECT(ev->eos_bus)); > + ev->eos_bus = NULL; > + } > + > /* we clear the stream lists */ > EINA_LIST_FREE(ev->audio_streams, astream) > free(astream); > @@ -683,24 +694,11 @@ > ev->eos_timer = NULL; > } > > - if (ev->eos_bus) > - { > - gst_object_unref(GST_OBJECT(ev->eos_bus)); > - ev->eos_bus = NULL; > - } > - > if (ev->metadata) > { > _free_metadata(ev->metadata); > ev->metadata = NULL; > } > - > - if (ev->pipeline) > - { > - gst_element_set_state(ev->pipeline, GST_STATE_NULL); > - gst_object_unref(ev->pipeline); > - ev->pipeline = NULL; > - } > } > > static void > @@ -1415,6 +1413,8 @@ > gstreamer_module_shutdown(void) > { > _emotion_module_unregister("gstreamer"); > + > + gst_deinit(); > } > > #ifndef EMOTION_STATIC_BUILD_GSTREAMER > > > ------------------------------------------------------------------------------ > All the data continuously generated in your IT infrastructure contains a > definitive record of customers, application performance, security > threats, fraudulent activity and more. Splunk takes this data and makes > sense of it. Business sense. IT sense. Common sense.. > http://p.sf.net/sfu/splunk-d2d-c1 > _______________________________________________ > enlightenment-svn mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/enlightenment-svn > > ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense.. http://p.sf.net/sfu/splunk-d2d-c1 _______________________________________________ enlightenment-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
