[vlc-devel] commit: input: Fix warnings. (Pierre d'Herbemont )

git version control git at videolan.org
Wed Aug 13 00:54:37 CEST 2008


vlc | branch: master | Pierre d'Herbemont <pdherbemont at videolan.org> | Wed Aug 13 00:33:30 2008 +0200| [ae291708beb3539912a08068526f9ca87cb46f33] | committer: Pierre d'Herbemont 

input: Fix warnings.

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

 src/input/input.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/input/input.c b/src/input/input.c
index 01d5282..57f3cee 100644
--- a/src/input/input.c
+++ b/src/input/input.c
@@ -223,7 +223,7 @@ static input_thread_t *Create( vlc_object_t *p_parent, input_item_t *p_item,
 
     /* Parse input options */
     vlc_mutex_lock( &p_item->lock );
-    assert( p_item->optflagc == p_item->i_options );
+    assert( (int)p_item->optflagc == p_item->i_options );
     for( i = 0; i < p_item->i_options; i++ )
         var_OptionParse( VLC_OBJECT(p_input), p_item->ppsz_options[i],
                          !!(p_item->optflagv[i] & VLC_INPUT_OPTION_TRUSTED) );
@@ -2056,6 +2056,7 @@ static void UpdateItemLength( input_thread_t *p_input, int64_t i_length )
  *****************************************************************************/
 static input_source_t *InputSourceNew( input_thread_t *p_input )
 {
+    (void)p_input;
     input_source_t *in = (input_source_t*) malloc( sizeof( input_source_t ) );
     if( in )
         memset( in, 0, sizeof( input_source_t ) );
@@ -2704,10 +2705,9 @@ void MRLSplit( char *psz_dup, const char **ppsz_access, const char **ppsz_demux,
     {
         psz_path = psz_dup;
     }
-
-    *ppsz_access = psz_access ? psz_access : "";
-    *ppsz_demux = psz_demux ? psz_demux : "";
-    *ppsz_path = psz_path ? psz_path : "";
+    *ppsz_access = psz_access ? psz_access : (char*)"";
+    *ppsz_demux = psz_demux ? psz_demux : (char*)"";
+    *ppsz_path = psz_path ? psz_path : (char*)"";
 }
 
 /*****************************************************************************




More information about the vlc-devel mailing list