]> git.sesse.net Git - vlc/commitdiff
Fix meta title insanity
authorLudovic Fauvet <etix@videolan.org>
Mon, 26 Jan 2015 17:54:32 +0000 (18:54 +0100)
committerLudovic Fauvet <etix@videolan.org>
Mon, 26 Jan 2015 18:01:12 +0000 (19:01 +0100)
Fix #13642

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
src/text/strings.c

index a872a1f51ed93fe4a9a8ab43c236ac47bff812c9..e0fd28c2cdcd7bcdeec6d9b162b83c593cdcdc90 100644 (file)
@@ -774,13 +774,12 @@ char *str_format_meta(input_thread_t *input, const char *s)
                     break;
                 {
                     char *value = input_item_GetNowPlayingFb(item);
-                    if (value == NULL)
-                        break;
-
-                    int ret = fputs(value, stream);
-                    free(value);
-
-                    if (ret == EOF)
+                    if (value != NULL)
+                    {
+                        fputs(value, stream);
+                        free(value);
+                    }
+                    else
                     {
                         char *title = input_item_GetTitleFbName(item);