# HG changeset patch # User lu_zero # Date 1278929840 0 # Node ID 7069d6fdedaa41082c8af91ae9c3cb731856115d # Parent deebd9ec774ee6ac667022a560ffb2a3797151ce Report when a method gets an error status code That makes easier understand what went wrong. In debug mode the whole reply gets printed. diff -r deebd9ec774e -r 7069d6fdedaa rtsp.c --- a/rtsp.c Sun Jul 11 14:56:32 2010 +0000 +++ b/rtsp.c Mon Jul 12 10:17:20 2010 +0000 @@ -959,6 +959,13 @@ rt->auth_state.auth_type != HTTP_AUTH_NONE) goto retry; + if (reply->status_code > 400){ + av_log(s, AV_LOG_ERROR, "method %s failed, %d\n", + method, + reply->status_code); + av_log(s, AV_LOG_DEBUG, "%s\n", rt->last_reply); + } + return 0; }