summaryrefslogtreecommitdiff
path: root/libavformat/rtsp.c
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2007-04-26 17:38:30 +0000
committerAlex Beregszaszi <alex@rtfs.hu>2007-04-26 17:38:30 +0000
commit0913873e5b681a8655396365799b2743924a8902 (patch)
tree23caefcd721739a1d85903e10190e07e302a5a2f /libavformat/rtsp.c
parentf87462ccef6c750ddd94793af52e2a107279bc17 (diff)
remove unused rtsp_callback
Originally committed as revision 8832 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/rtsp.c')
-rw-r--r--libavformat/rtsp.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c
index 7d4c6bf783..c65ff47995 100644
--- a/libavformat/rtsp.c
+++ b/libavformat/rtsp.c
@@ -77,8 +77,6 @@ static int rtsp_read_play(AVFormatContext *s);
int rtsp_default_protocols = (1 << RTSP_PROTOCOL_RTP_UDP);
-FFRTSPCallback *ff_rtsp_callback = NULL;
-
static int rtsp_probe(AVProbeData *p)
{
if (strstart(p->filename, "rtsp:", NULL))
@@ -818,12 +816,6 @@ static void rtsp_send_cmd(AVFormatContext *s,
}
-void rtsp_set_callback(FFRTSPCallback *rtsp_cb)
-{
- ff_rtsp_callback = rtsp_cb;
-}
-
-
/* close and free RTSP streams */
static void rtsp_close_streams(RTSPState *rt)
{
@@ -1039,16 +1031,6 @@ static int rtsp_read_header(AVFormatContext *s,
}
}
- /* use callback if available to extend setup */
- if (ff_rtsp_callback) {
- if (ff_rtsp_callback(RTSP_ACTION_CLIENT_SETUP, rt->session_id,
- NULL, 0, rt->last_reply) < 0) {
- err = AVERROR_INVALIDDATA;
- goto fail;
- }
- }
-
-
rt->state = RTSP_STATE_IDLE;
rt->seek_timestamp = 0; /* default is to start stream at position
zero */
@@ -1295,11 +1277,6 @@ static int rtsp_read_close(AVFormatContext *s)
s->filename);
rtsp_send_cmd(s, cmd, reply, NULL);
- if (ff_rtsp_callback) {
- ff_rtsp_callback(RTSP_ACTION_CLIENT_TEARDOWN, rt->session_id,
- NULL, 0, NULL);
- }
-
rtsp_close_streams(rt);
url_close(rt->rtsp_hd);
return 0;