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
fc490fcf
Commit
fc490fcf
authored
Jun 05, 2010
by
Martin Storsjö
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cosmetics: Reindent/align/wrap
Originally committed as revision 23498 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
d0382374
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
28 deletions
+29
-28
rtsp.c
libavformat/rtsp.c
+16
-15
rtsp.h
libavformat/rtsp.h
+13
-13
No files found.
libavformat/rtsp.c
View file @
fc490fcf
...
...
@@ -1002,10 +1002,10 @@ int ff_rtsp_read_reply(AVFormatContext *s, RTSPMessageHeader *reply,
}
int
ff_rtsp_send_cmd_with_content_async
(
AVFormatContext
*
s
,
const
char
*
method
,
const
char
*
url
,
const
char
*
headers
,
const
unsigned
char
*
send_content
,
int
send_content_length
)
const
char
*
method
,
const
char
*
url
,
const
char
*
headers
,
const
unsigned
char
*
send_content
,
int
send_content_length
)
{
RTSPState
*
rt
=
s
->
priv_data
;
char
buf
[
4096
];
...
...
@@ -1041,26 +1041,26 @@ int ff_rtsp_send_cmd_with_content_async(AVFormatContext *s,
}
int
ff_rtsp_send_cmd_async
(
AVFormatContext
*
s
,
const
char
*
method
,
const
char
*
url
,
const
char
*
headers
)
const
char
*
url
,
const
char
*
headers
)
{
return
ff_rtsp_send_cmd_with_content_async
(
s
,
method
,
url
,
headers
,
NULL
,
0
);
}
int
ff_rtsp_send_cmd
(
AVFormatContext
*
s
,
const
char
*
method
,
const
char
*
url
,
const
char
*
headers
,
RTSPMessageHeader
*
reply
,
unsigned
char
**
content_ptr
)
const
char
*
headers
,
RTSPMessageHeader
*
reply
,
unsigned
char
**
content_ptr
)
{
return
ff_rtsp_send_cmd_with_content
(
s
,
method
,
url
,
headers
,
reply
,
content_ptr
,
NULL
,
0
);
content_ptr
,
NULL
,
0
);
}
int
ff_rtsp_send_cmd_with_content
(
AVFormatContext
*
s
,
const
char
*
method
,
const
char
*
url
,
const
char
*
header
,
RTSPMessageHeader
*
reply
,
unsigned
char
**
content_ptr
,
const
unsigned
char
*
send_content
,
int
send_content_length
)
const
char
*
method
,
const
char
*
url
,
const
char
*
header
,
RTSPMessageHeader
*
reply
,
unsigned
char
**
content_ptr
,
const
unsigned
char
*
send_content
,
int
send_content_length
)
{
RTSPState
*
rt
=
s
->
priv_data
;
HTTPAuthType
cur_auth_type
;
...
...
@@ -1069,7 +1069,8 @@ int ff_rtsp_send_cmd_with_content(AVFormatContext *s,
retry:
cur_auth_type
=
rt
->
auth_state
.
auth_type
;
if
((
ret
=
ff_rtsp_send_cmd_with_content_async
(
s
,
method
,
url
,
header
,
send_content
,
send_content_length
)))
send_content
,
send_content_length
)))
return
ret
;
if
((
ret
=
ff_rtsp_read_reply
(
s
,
reply
,
content_ptr
,
0
)
)
<
0
)
...
...
libavformat/rtsp.h
View file @
fc490fcf
...
...
@@ -349,17 +349,17 @@ extern int rtsp_rtp_port_max;
* @return zero if success, nonzero otherwise
*/
int
ff_rtsp_send_cmd_with_content_async
(
AVFormatContext
*
s
,
const
char
*
method
,
const
char
*
url
,
const
char
*
headers
,
const
unsigned
char
*
send_content
,
int
send_content_length
);
const
char
*
method
,
const
char
*
url
,
const
char
*
headers
,
const
unsigned
char
*
send_content
,
int
send_content_length
);
/**
* Send a command to the RTSP server without waiting for the reply.
*
* @see rtsp_send_cmd_with_content_async
*/
int
ff_rtsp_send_cmd_async
(
AVFormatContext
*
s
,
const
char
*
method
,
const
char
*
url
,
const
char
*
headers
);
const
char
*
url
,
const
char
*
headers
);
/**
* Send a command to the RTSP server and wait for the reply.
...
...
@@ -378,12 +378,12 @@ int ff_rtsp_send_cmd_async(AVFormatContext *s, const char *method,
* @return zero if success, nonzero otherwise
*/
int
ff_rtsp_send_cmd_with_content
(
AVFormatContext
*
s
,
const
char
*
method
,
const
char
*
url
,
const
char
*
headers
,
RTSPMessageHeader
*
reply
,
unsigned
char
**
content_ptr
,
const
unsigned
char
*
send_content
,
int
send_content_length
);
const
char
*
method
,
const
char
*
url
,
const
char
*
headers
,
RTSPMessageHeader
*
reply
,
unsigned
char
**
content_ptr
,
const
unsigned
char
*
send_content
,
int
send_content_length
);
/**
* Send a command to the RTSP server and wait for the reply.
...
...
@@ -391,8 +391,8 @@ int ff_rtsp_send_cmd_with_content(AVFormatContext *s,
* @see rtsp_send_cmd_with_content
*/
int
ff_rtsp_send_cmd
(
AVFormatContext
*
s
,
const
char
*
method
,
const
char
*
url
,
const
char
*
headers
,
RTSPMessageHeader
*
reply
,
unsigned
char
**
content_ptr
);
const
char
*
url
,
const
char
*
headers
,
RTSPMessageHeader
*
reply
,
unsigned
char
**
content_ptr
);
/**
* Read a RTSP message from the server, or prepare to read data
...
...
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