]> git.sesse.net Git - vlc/commitdiff
* Don't reset input meta information
authorClément Stenac <zorglub@videolan.org>
Sun, 4 Jun 2006 09:00:36 +0000 (09:00 +0000)
committerClément Stenac <zorglub@videolan.org>
Sun, 4 Jun 2006 09:00:36 +0000 (09:00 +0000)
* Improve notification layout

modules/misc/Modules.am
modules/misc/notify.c
src/input/input.c

index 9e9548341ba6a7a992da3e828b23dda77e342352..ab26c2644f9a8a4e59e06f50f57329292695be16 100644 (file)
@@ -12,3 +12,4 @@ SOURCES_gnutls = gnutls.c
 SOURCES_svg = svg.c
 SOURCES_msn = msn.c
 SOURCES_growl = growl.c
+SOURCES_notify = notify.c
index 116cfc88aeda963981cdcfeca83a292fd343ec1e..4743fde19bcf95275192210674b89d68c9170263 100644 (file)
@@ -139,6 +139,7 @@ static int ItemChange( vlc_object_t *p_this, const char *psz_var,
     p_playlist = (playlist_t *)vlc_object_find( p_this, VLC_OBJECT_PLAYLIST,
                                                 FIND_ANYWHERE );
     if( !p_playlist ) return VLC_EGENERIC;
+
     p_input = p_playlist->p_input;
     vlc_object_release( p_playlist );
     if( !p_input ) return VLC_SUCCESS;
@@ -160,7 +161,7 @@ static int ItemChange( vlc_object_t *p_this, const char *psz_var,
                   strdup( _("no album") );
     psz_title = strdup( p_input->input.p_item->psz_name );
     if( psz_title == NULL ) psz_title = strdup( N_("(no title)") );
-    snprintf( psz_tmp, MAX_LENGTH, "%s - %s - %s",
+    snprintf( psz_tmp, MAX_LENGTH, "<b>%s</b>\n%s - %s",
               psz_title, psz_artist, psz_album );
     free( psz_title );
     free( psz_artist );
index 74f06511a00711817903deba56b507cc0d50da61..b5ecf5db6892b718e009eba12ccbb45344a5d7ac 100644 (file)
@@ -149,7 +149,8 @@ static input_thread_t *Create( vlc_object_t *p_parent, input_item_t *p_item,
     p_input->input.b_eof = VLC_FALSE;
     p_input->input.i_cr_average = 0;
 
-    p_input->input.p_item->p_meta = vlc_meta_New();
+    if( !p_input->input.p_item->p_meta )
+        p_input->input.p_item->p_meta = vlc_meta_New();
     stats_ReinitInputStats( p_item->p_stats );
 
     /* No slave */