ext/dvdread/dvdreadsrc.c: Fix wrong check for started flag when setting the 'device' property.

Original commit message from CVS:
Patch by: Jürg Billeter  <j at bitron dot ch>
* 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.
This commit is contained in:
Jürg Billeter 2006-03-27 14:04:08 +00:00 committed by Tim-Philipp Müller
parent 08c4bd4168
commit fdfeed3459
2 changed files with 10 additions and 1 deletions

View file

@ -1,3 +1,12 @@
2006-03-27 Tim-Philipp Müller <tim at centricular dot net>
Patch by: Jürg Billeter <j at bitron dot ch>
* 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 <tim at centricular dot net>
Patch by: Fabrizio Gennari <fabrizio dot ge at tiscali dot it>

View file

@ -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;;