vlc | branch: master | Ludovic Fauvet <[email protected]> | Mon Jan 26 18:54:32 
2015 +0100| [6b8ff472ec575505abc6c265cc062b79d79a5347] | committer: Ludovic 
Fauvet

Fix meta title insanity

Fix #13642

Signed-off-by: Jean-Baptiste Kempf <[email protected]>

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

 src/text/strings.c |   13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)

diff --git a/src/text/strings.c b/src/text/strings.c
index a872a1f..e0fd28c 100644
--- a/src/text/strings.c
+++ b/src/text/strings.c
@@ -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);
 

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to