]> git.sesse.net Git - vlc/commitdiff
fileinfo : patch by Jonas A. Larsen to remove empty fields
authorAntoine Cellerier <dionoea@videolan.org>
Mon, 1 Aug 2005 17:21:22 +0000 (17:21 +0000)
committerAntoine Cellerier <dionoea@videolan.org>
Mon, 1 Aug 2005 17:21:22 +0000 (17:21 +0000)
bookmarks : remove compile warning

modules/gui/wxwindows/bookmarks.cpp
modules/gui/wxwindows/fileinfo.cpp

index c0bb2f1f5c2b4264365db7328143b2c6a3858523..05721b1de5a506f434100696e0754c8c9629b7ed 100644 (file)
@@ -517,7 +517,7 @@ void BookmarksDialog::OnEdit( wxCommandEvent& event )
                 return;
 
            }
-           fprintf(stderr,"Changing %i\n",i_first );
+           fprintf(stderr,"Changing %li\n",i_first );
            if( input_Control(  p_input, INPUT_CHANGE_BOOKMARK,
                                 p_bmk_edit->p_seekpoint, i_first ) !=
                VLC_SUCCESS )
index 54e79fdb5527b0d342ed0cd1981d2e9e38570414..61ec2c8402a883b7a769794ebc72910d196f74a4 100644 (file)
@@ -151,8 +151,12 @@ void FileInfo::UpdateFileInfo()
         {
             info_t *p_info = p_cat->pp_infos[j];
 
-            fileinfo_tree->AppendItem( cat, (wxString)wxU(p_info->psz_name) +
-                                       wxT(": ") + wxU(p_info->psz_value) );
+            if( p_info->psz_value[0] != 0 )
+            /* We only wanna show fields that have an actual value */
+            {
+                fileinfo_tree->AppendItem( cat, (wxString)wxU(p_info->psz_name)
+                                        + wxT(": ") + wxU(p_info->psz_value) );
+            }
         }
         fileinfo_tree->Expand( cat );
     }
@@ -179,7 +183,7 @@ void FileInfo::OnClose( wxCloseEvent& WXUNUSED(event) )
     Hide();
 }
 
-static int ItemChanged( vlc_object_t *p_this, const char *psz_var, 
+static int ItemChanged( vlc_object_t *p_this, const char *psz_var,
                         vlc_value_t oldval, vlc_value_t newval, void *param )
 {
     FileInfo *p_fileinfo = (FileInfo *)param;