rtmp: Return a proper error code in handle_invoke_error

Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
Martin Storsjö 2012-12-30 18:53:35 +02:00
parent 506409776c
commit c76daa89ab

View File

@ -1533,7 +1533,7 @@ static int handle_invoke_error(URLContext *s, RTMPPacket *pkt)
level = AV_LOG_WARNING;
ret = 0;
} else
ret = -1;
ret = AVERROR_UNKNOWN;
av_log(s, level, "Server error: %s\n", tmpstr);
}