gst/playback/gstplaybasebin.c: Set source to NULL so that resources are free'ed....
authorRonald S. Bultje <rbultje@ronald.bitfreak.net>
Sun, 9 Jan 2005 19:29:06 +0000 (19:29 +0000)
committerRonald S. Bultje <rbultje@ronald.bitfreak.net>
Sun, 9 Jan 2005 19:29:06 +0000 (19:29 +0000)
Original commit message from CVS:
* gst/playback/gstplaybasebin.c: (setup_source):
Set source to NULL so that resources are free'ed. Fixes issues
with playback of CDDA and similar device-accessing things.

ChangeLog
gst/playback/gstplaybasebin.c

index 8e4068d..3757dc6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2005-01-09  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
 
+       * gst/playback/gstplaybasebin.c: (setup_source):
+         Set source to NULL so that resources are free'ed. Fixes issues
+         with playback of CDDA and similar device-accessing things.
+
+2005-01-09  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
+
        * testsuite/embed/Makefile.am:
          test->noinst, fix make test in buildbot.
 
index a3cedd0..b106530 100644 (file)
@@ -1096,6 +1096,7 @@ setup_source (GstPlayBaseBin * play_base_bin, GError ** error)
   } else {
     if (old_src) {
       GST_LOG ("removing old src element %s", gst_element_get_name (old_src));
+      gst_element_set_state (old_src, GST_STATE_NULL);
       gst_bin_remove (GST_BIN (play_base_bin->thread), old_src);
     }
     gst_bin_add (GST_BIN (play_base_bin->thread), play_base_bin->source);