Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
0913873e
Commit
0913873e
authored
Apr 26, 2007
by
Alex Beregszaszi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove unused rtsp_callback
Originally committed as revision 8832 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
f87462cc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
27 deletions
+0
-27
rtsp.c
libavformat/rtsp.c
+0
-23
rtsp.h
libavformat/rtsp.h
+0
-4
No files found.
libavformat/rtsp.c
View file @
0913873e
...
...
@@ -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
;
...
...
libavformat/rtsp.h
View file @
0913873e
...
...
@@ -76,16 +76,12 @@ typedef int FFRTSPCallback(enum RTSPCallbackAction action,
char
*
buf
,
int
buf_size
,
void
*
arg
);
/** useful for modules: set RTSP callback function */
void
rtsp_set_callback
(
FFRTSPCallback
*
rtsp_cb
);
int
rtsp_init
(
void
);
void
rtsp_parse_line
(
RTSPHeader
*
reply
,
const
char
*
buf
);
extern
int
rtsp_default_protocols
;
extern
int
rtsp_rtp_port_min
;
extern
int
rtsp_rtp_port_max
;
extern
FFRTSPCallback
*
ff_rtsp_callback
;
extern
AVInputFormat
rtsp_demuxer
;
int
rtsp_pause
(
AVFormatContext
*
s
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment