#include <vlc/aout.h>
#include <vlc/intf.h>
+#include "vlc_meta.h"
+
#include "wxwindows.h"
#include <wx/timer.h>
b_old_seekable = VLC_FALSE;
b_disc_shown = VLC_FALSE;
- p_main_interface->statusbar->SetStatusText(
- wxU(p_intf->p_sys->p_input->input.p_item->psz_name), 2 );
+ char *psz_now_playing = vlc_input_item_GetInfo(
+ p_intf->p_sys->p_input->input.p_item,
+ _("Meta-information"), _( "Now Playing" ) );
+ if( psz_now_playing && *psz_now_playing )
+ {
+ p_main_interface->statusbar->SetStatusText(
+ wxU(psz_now_playing) + wxT( " - " ) +
+ wxU(p_intf->p_sys->p_input->input.p_item->psz_name), 2 );
+ }
+ else
+ {
+ p_main_interface->statusbar->SetStatusText(
+ wxU(p_intf->p_sys->p_input->input.p_item->psz_name), 2 );
+ }
+ free( psz_now_playing );
p_main_interface->TogglePlayButton( PLAYING_S );
#ifdef wxHAS_TASK_BAR_ICON
p_intf->p_sys->b_playing = 1;
/* Update the item name */
- p_main_interface->statusbar->SetStatusText(
- wxU(p_intf->p_sys->p_input->input.p_item->psz_name), 2 );
+ char *psz_now_playing = vlc_input_item_GetInfo(
+ p_intf->p_sys->p_input->input.p_item,
+ _("Meta-information"), _( "Now Playing" ) );
+ if( psz_now_playing && *psz_now_playing )
+ {
+ p_main_interface->statusbar->SetStatusText(
+ wxU(psz_now_playing) + wxT( " - " ) +
+ wxU(p_intf->p_sys->p_input->input.p_item->psz_name), 2 );
+ }
+ else
+ {
+ p_main_interface->statusbar->SetStatusText(
+ wxU(p_intf->p_sys->p_input->input.p_item->psz_name), 2 );
+ }
+ free( psz_now_playing );
/* Manage the slider */
/* FIXME --fenrir */
/***********************************************************************
* Info management functions
***********************************************************************/
+/**
+ * Get a info item from a given category in a given input item.
+ *
+ * \param p_i The input item to get info from
+ * \param psz_cat String representing the category for the info
+ * \param psz_name String representing the name of the desired info
+ * \return A pointer to the string with the given info if found, or an
+ * empty string otherwise. The caller should free the returned
+ * pointer.
+ */
char *vlc_input_item_GetInfo( input_item_t *p_i,
const char *psz_cat,
const char *psz_name )