Commit f3e5f808 authored by Antoine Cellerier's avatar Antoine Cellerier

fileinfo : patch by Jonas A. Larsen to remove empty fields

bookmarks : remove compile warning
parent 1098be62
...@@ -517,7 +517,7 @@ void BookmarksDialog::OnEdit( wxCommandEvent& event ) ...@@ -517,7 +517,7 @@ void BookmarksDialog::OnEdit( wxCommandEvent& event )
return; return;
} }
fprintf(stderr,"Changing %i\n",i_first ); fprintf(stderr,"Changing %li\n",i_first );
if( input_Control( p_input, INPUT_CHANGE_BOOKMARK, if( input_Control( p_input, INPUT_CHANGE_BOOKMARK,
p_bmk_edit->p_seekpoint, i_first ) != p_bmk_edit->p_seekpoint, i_first ) !=
VLC_SUCCESS ) VLC_SUCCESS )
......
...@@ -151,8 +151,12 @@ void FileInfo::UpdateFileInfo() ...@@ -151,8 +151,12 @@ void FileInfo::UpdateFileInfo()
{ {
info_t *p_info = p_cat->pp_infos[j]; info_t *p_info = p_cat->pp_infos[j];
fileinfo_tree->AppendItem( cat, (wxString)wxU(p_info->psz_name) + if( p_info->psz_value[0] != 0 )
wxT(": ") + wxU(p_info->psz_value) ); /* 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 ); fileinfo_tree->Expand( cat );
} }
...@@ -179,7 +183,7 @@ void FileInfo::OnClose( wxCloseEvent& WXUNUSED(event) ) ...@@ -179,7 +183,7 @@ void FileInfo::OnClose( wxCloseEvent& WXUNUSED(event) )
Hide(); 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 ) vlc_value_t oldval, vlc_value_t newval, void *param )
{ {
FileInfo *p_fileinfo = (FileInfo *)param; FileInfo *p_fileinfo = (FileInfo *)param;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment