From fdfeed3459eaa5b2fc3cc2a714f09a35950b8a1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Billeter?= Date: Mon, 27 Mar 2006 14:04:08 +0000 Subject: [PATCH] ext/dvdread/dvdreadsrc.c: Fix wrong check for started flag when setting the 'device' property. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Original commit message from CVS: Patch by: Jürg Billeter * ext/dvdread/dvdreadsrc.c: (gst_dvd_read_src_set_property): Fix wrong check for started flag when setting the 'device' property. We want to allow it when the source is NOT started yet and ignore it when the source is running. --- ChangeLog | 9 +++++++++ ext/dvdread/dvdreadsrc.c | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 84e54b6307..f25c937ddf 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2006-03-27 Tim-Philipp Müller + + Patch by: Jürg Billeter + + * ext/dvdread/dvdreadsrc.c: (gst_dvd_read_src_set_property): + Fix wrong check for started flag when setting the 'device' property. + We want to allow it when the source is NOT started yet and ignore it + when the source is running. + 2006-03-27 Tim-Philipp Müller Patch by: Fabrizio Gennari diff --git a/ext/dvdread/dvdreadsrc.c b/ext/dvdread/dvdreadsrc.c index e1fb180b4d..29bfb8c465 100644 --- a/ext/dvdread/dvdreadsrc.c +++ b/ext/dvdread/dvdreadsrc.c @@ -718,7 +718,7 @@ gst_dvd_read_src_set_property (GObject * object, guint prop_id, switch (prop_id) { case ARG_DEVICE:{ - if (!started) { + if (started) { g_warning ("%s: property '%s' needs to be set before the device is " "opened", GST_ELEMENT_NAME (src), pspec->name); break;;