[vlc-commits] Strings: use getTitleFbName for str_format_meta

Jean-Baptiste Kempf git at videolan.org
Mon May 23 00:34:35 CEST 2011


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Mon May 23 00:33:58 2011 +0200| [cceb57659f7ec02c2d4866c63c41af3dc5b63c7e] | committer: Jean-Baptiste Kempf

Strings: use getTitleFbName for str_format_meta

Close #4776

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

 src/text/strings.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/text/strings.c b/src/text/strings.c
index d438fd5..3bc335b 100644
--- a/src/text/strings.c
+++ b/src/text/strings.c
@@ -629,7 +629,7 @@ static void format_duration (char *buf, size_t len, int64_t duration)
                         memcpy( (dst+d), string, len );             \
                         d += len;                                   \
                         free( string );                             \
-                    }                                               \
+                    }
 
 /* same than INSERT_STRING, except that string won't be freed */
 #define INSERT_STRING_NO_FREE( string )                             \
@@ -904,7 +904,7 @@ char *str_format_meta( vlc_object_t *p_object, const char *string )
                         char *now_playing = input_item_GetNowPlaying( p_item );
                         if ( now_playing == NULL )
                         {
-                            char *temp = input_item_GetTitle( p_item );
+                            char *temp = input_item_GetTitleFbName( p_item );
                             if( !EMPTY_STR( temp ) )
                             {
                                 INSERT_STRING( temp );



More information about the vlc-commits mailing list