From 7506b792303373b1d3ab73306ecaf65ee10ec58b Mon Sep 17 00:00:00 2001 From: "Ronald S. Bultje" Date: Sun, 9 Jan 2005 19:29:06 +0000 Subject: [PATCH] gst/playback/gstplaybasebin.c: Set source to NULL so that resources are free'ed. Fixes issues with playback of CDDA a... 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 | 6 ++++++ gst/playback/gstplaybasebin.c | 1 + 2 files changed, 7 insertions(+) diff --git a/ChangeLog b/ChangeLog index 8e4068d..3757dc6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ 2005-01-09 Ronald S. Bultje + * 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 + * testsuite/embed/Makefile.am: test->noinst, fix make test in buildbot. diff --git a/gst/playback/gstplaybasebin.c b/gst/playback/gstplaybasebin.c index a3cedd0..b106530 100644 --- a/gst/playback/gstplaybasebin.c +++ b/gst/playback/gstplaybasebin.c @@ -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); -- 2.7.4