From 5fac177524acc3d1effb552179c35647714854e2 Mon Sep 17 00:00:00 2001 From: maroy Date: Tue, 28 Jun 2005 08:42:05 +0000 Subject: [PATCH] previous version broke the mp3 support, now works again.. --- .../modules/gstreamerElements/src/autoplug.c | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/livesupport/modules/gstreamerElements/src/autoplug.c b/livesupport/modules/gstreamerElements/src/autoplug.c index 7b5d03bca..6f2e208ce 100644 --- a/livesupport/modules/gstreamerElements/src/autoplug.c +++ b/livesupport/modules/gstreamerElements/src/autoplug.c @@ -27,7 +27,7 @@ Author : $Author: maroy $ - Version : $Revision: 1.3 $ + Version : $Revision: 1.4 $ Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/gstreamerElements/src/autoplug.c,v $ ------------------------------------------------------------------------------*/ @@ -685,23 +685,19 @@ ls_gst_autoplug_plug_source(GstElement * source, return NULL; } - /* remove the source element from the pipeline */ - gst_bin_remove(GST_BIN(typefind.pipeline), typefind.source); - gst_element_unlink(typefind.source, typefind.bin); - /* remove the sink element */ gst_element_unlink(typefind.bin, typefind.sink); gst_bin_remove(GST_BIN(typefind.pipeline), typefind.sink); typefind.sink = NULL; - /* destory the pipeline, but keep source and bin */ - g_object_ref(typefind.bin); - gst_bin_remove(GST_BIN(typefind.pipeline), typefind.bin); - /* remove the typefind elements, and re-link with the source */ autoplug_remove_typefind_elements(&typefind, GST_BIN(typefind.bin)); gst_element_link(typefind.source, typefind.bin); + /* destory the pipeline, but keep source and bin */ + g_object_ref(typefind.bin); + gst_bin_remove(GST_BIN(typefind.pipeline), typefind.bin); + bin = typefind.bin; autoplug_deinit(&typefind);