From 2c6a5e6ccd868804849685b407afefdeaf876586 Mon Sep 17 00:00:00 2001 From: Luca Abeni Date: Thu, 19 Apr 2007 13:54:11 +0000 Subject: Remove unused callbacks from ffserver Originally committed as revision 8758 to svn://svn.ffmpeg.org/ffmpeg/trunk --- ffserver.c | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/ffserver.c b/ffserver.c index 040c5f8d24..529740466e 100644 --- a/ffserver.c +++ b/ffserver.c @@ -2932,18 +2932,6 @@ static void rtsp_cmd_setup(HTTPContext *c, const char *url, dest_addr = rtp_c->from_addr; dest_addr.sin_port = htons(th->client_port_min); - /* add transport option if needed */ - if (ff_rtsp_callback) { - setup.ipaddr = ntohl(dest_addr.sin_addr.s_addr); - if (ff_rtsp_callback(RTSP_ACTION_SERVER_SETUP, rtp_c->session_id, - (char *)&setup, sizeof(setup), - stream->rtsp_option) < 0) { - rtsp_reply_error(c, RTSP_STATUS_TRANSPORT); - return; - } - dest_addr.sin_addr.s_addr = htonl(setup.ipaddr); - } - /* setup stream */ if (rtp_new_av_stream(rtp_c, stream_index, &dest_addr, c) < 0) { rtsp_reply_error(c, RTSP_STATUS_TRANSPORT); @@ -3084,12 +3072,6 @@ static void rtsp_cmd_teardown(HTTPContext *c, const char *url, RTSPHeader *h) /* abort the session */ close_connection(rtp_c); - if (ff_rtsp_callback) { - ff_rtsp_callback(RTSP_ACTION_SERVER_TEARDOWN, rtp_c->session_id, - NULL, 0, - rtp_c->stream->rtsp_option); - } - /* now everything is OK, so we can send the connection parameters */ rtsp_reply_header(c, RTSP_STATUS_OK); /* session ID */ -- cgit v1.2.3