ext/dvdread/dvdreadsrc.c: Fix wrong check for started flag when setting the 'device...
authorJürg Billeter <j@bitron.ch>
Mon, 27 Mar 2006 14:04:08 +0000 (14:04 +0000)
committerTim-Philipp Müller <tim@centricular.net>
Mon, 27 Mar 2006 14:04:08 +0000 (14:04 +0000)
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.

ChangeLog
ext/dvdread/dvdreadsrc.c

index 84e54b6..f25c937 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,14 @@
 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>
 
        * gst/asfdemux/gstasfdemux.c: (gst_asf_demux_setup_pad),
index e1fb180..29bfb8c 100644 (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;;