[vlc-devel] commit: dc1394: fix debug messages ( Rémi Duraffort )

git version control git at videolan.org
Fri Dec 4 11:38:56 CET 2009


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Fri Dec  4 11:31:09 2009 +0100| [f6dd239c88e449b76f2b533c136bb8bbc133a9da] | committer: Rémi Duraffort 

dc1394: fix debug messages

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f6dd239c88e449b76f2b533c136bb8bbc133a9da
---

 modules/access/dc1394.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/modules/access/dc1394.c b/modules/access/dc1394.c
index bd5f288..03ea72b 100644
--- a/modules/access/dc1394.c
+++ b/modules/access/dc1394.c
@@ -318,7 +318,8 @@ static int Open( vlc_object_t *p_this )
             msg_Err( p_demux, "Unable to set initial focus to %u",
                      p_sys->focus );
         }
-        msg_Dbg( p_demux, "Initial focus set to %u", p_sys->focus );
+        else
+            msg_Dbg( p_demux, "Initial focus set to %u", p_sys->focus );
     }
 
     if( dc1394_feature_set_value( p_sys->camera,
@@ -328,7 +329,8 @@ static int Open( vlc_object_t *p_this )
         msg_Err( p_demux, "Unable to set initial brightness to %u",
                  p_sys->brightness );
     }
-    msg_Dbg( p_demux, "Initial brightness set to %u", p_sys->brightness );
+    else
+        msg_Dbg( p_demux, "Initial brightness set to %u", p_sys->brightness );
 
     if( dc1394_video_set_framerate( p_sys->camera,
                     p_sys->frame_rate ) != DC1394_SUCCESS )




More information about the vlc-devel mailing list