rtmpproto: Check for the right return code
authorMartin Storsjö <martin@martin.st>
Tue, 17 Sep 2013 12:07:10 +0000 (15:07 +0300)
committerMartin Storsjö <martin@martin.st>
Tue, 17 Sep 2013 17:09:22 +0000 (20:09 +0300)
Signed-off-by: Martin Storsjö <martin@martin.st>
libavformat/rtmpproto.c

index 5989ba3..e9814a3 100644 (file)
@@ -2531,7 +2531,7 @@ reconnect:
 
     do {
         ret = get_packet(s, 1);
 
     do {
         ret = get_packet(s, 1);
-    } while (ret == EAGAIN);
+    } while (ret == AVERROR(EAGAIN));
     if (ret < 0)
         goto fail;
 
     if (ret < 0)
         goto fail;