[vlc-commits] DShow: kill warnings

Jean-Baptiste Kempf git at videolan.org
Sat May 14 15:18:58 CEST 2011


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sat May 14 15:18:48 2011 +0200| [5942a863abf6b1c06dd8e2603a7aa6fd1354e7c1] | committer: Jean-Baptiste Kempf

DShow: kill warnings

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

 modules/access/dshow/dshow.cpp |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/modules/access/dshow/dshow.cpp b/modules/access/dshow/dshow.cpp
index 604fba5..4167566 100644
--- a/modules/access/dshow/dshow.cpp
+++ b/modules/access/dshow/dshow.cpp
@@ -2015,6 +2015,8 @@ static int DemuxControl( demux_t *p_demux, int i_query, va_list args )
 static int FindDevicesCallback( vlc_object_t *p_this, char const *psz_name,
                                vlc_value_t newval, vlc_value_t oldval, void * )
 {
+    VLC_UNUSED( newval ); VLC_UNUSED( oldval );
+
     module_config_t *p_item;
     bool b_audio = false;
     int i;
@@ -2077,6 +2079,8 @@ static int FindDevicesCallback( vlc_object_t *p_this, char const *psz_name,
 static int ConfigDevicesCallback( vlc_object_t *p_this, char const *psz_name,
                                vlc_value_t newval, vlc_value_t oldval, void * )
 {
+    VLC_UNUSED( oldval );
+
     module_config_t *p_item;
     bool b_audio = false;
     char *psz_device = NULL;
@@ -2380,9 +2384,9 @@ static void ConfigTuner( vlc_object_t *p_this, ICaptureGraphBuilder2 *p_graph,
             goto free_on_error;
         }
 
-        msg_Dbg( p_this, "Frequency range supproted from %d to %d.", ModeCaps.MinFrequency, ModeCaps.MaxFrequency);
+        msg_Dbg( p_this, "Frequency range supproted from %lu to %lu.", ModeCaps.MinFrequency, ModeCaps.MaxFrequency);
         msg_Dbg( p_this, "Video standards supproted by the tuner: ");
-        for(int i = 0 ; i < ARRAY_SIZE(ppsz_standards_list_text); i++) {
+        for( size_t i = 0 ; i < ARRAY_SIZE(ppsz_standards_list_text); i++) {
             if(ModeCaps.StandardsSupported & i_standards_list[i])
                 msg_Dbg( p_this, "%s, ", ppsz_standards_list_text[i]);
         }
@@ -2394,7 +2398,7 @@ static void ConfigTuner( vlc_object_t *p_this, ICaptureGraphBuilder2 *p_graph,
             else
                 Frequency.TuningFlags=KS_TUNER_TUNING_EXACT;
 
-            if(i_frequency>=ModeCaps.MinFrequency && i_frequency<=ModeCaps.MaxFrequency)
+            if((unsigned)i_frequency >= ModeCaps.MinFrequency && (unsigned)i_frequency<=ModeCaps.MaxFrequency)
             {
 
                 hr = pKs->Set(PROPSETID_TUNER,



More information about the vlc-commits mailing list