client: improve debug

This commit is contained in:
Wim Taymans 2012-11-27 12:33:02 +01:00
parent d5389c940d
commit b3fe3357ab

View file

@ -1609,12 +1609,10 @@ handle_request (GstRTSPClient * client, GstRTSPMessage * request)
case GST_RTSP_ANNOUNCE:
case GST_RTSP_RECORD:
case GST_RTSP_REDIRECT:
send_generic_response (client, GST_RTSP_STS_NOT_IMPLEMENTED, &state);
break;
goto not_implemented;
case GST_RTSP_INVALID:
default:
send_generic_response (client, GST_RTSP_STS_BAD_REQUEST, &state);
break;
goto bad_request;
}
done:
@ -1656,6 +1654,12 @@ not_authorized:
handle_unauthorized_request (client, client->auth, &state);
goto done;
}
not_implemented:
{
GST_ERROR ("client %p: method %d not implemented", client, method);
send_generic_response (client, GST_RTSP_STS_NOT_IMPLEMENTED, &state);
goto done;
}
}
static void