[vlc-commits] audioscrobbler: fix stream error handling

Rémi Denis-Courmont git at videolan.org
Fri Aug 21 19:14:26 CEST 2015


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Fri Aug 21 19:56:15 2015 +0300| [c63fb384e787aa1ee7ac31b796506fd7abcf2bd6] | committer: Rémi Denis-Courmont

audioscrobbler: fix stream error handling

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

 modules/misc/audioscrobbler.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/misc/audioscrobbler.c b/modules/misc/audioscrobbler.c
index b463bff..df436b7 100644
--- a/modules/misc/audioscrobbler.c
+++ b/modules/misc/audioscrobbler.c
@@ -555,7 +555,7 @@ static int Handshake(intf_thread_t *p_this)
 
     /* read answer */
     i_ret = stream_Read(p_stream, p_buffer, sizeof(p_buffer) - 1);
-    if (i_ret == 0)
+    if (i_ret <= 0)
     {
         stream_Delete(p_stream);
         return VLC_EGENERIC;



More information about the vlc-commits mailing list