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
86a4e55e
Commit
86a4e55e
authored
Oct 31, 2011
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mmsh: split out mmsh_open_internal()
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
aedb87c5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
mmsh.c
libavformat/mmsh.c
+8
-2
No files found.
libavformat/mmsh.c
View file @
86a4e55e
...
...
@@ -211,7 +211,7 @@ static int get_http_header_data(MMSHContext *mmsh)
}
}
static
int
mmsh_open
(
URLContext
*
h
,
const
char
*
uri
,
int
flag
s
)
static
int
mmsh_open
_internal
(
URLContext
*
h
,
const
char
*
uri
,
int
flags
,
int
timestamp
,
int64_t
po
s
)
{
int
i
,
port
,
err
;
char
httpname
[
256
],
path
[
256
],
host
[
128
];
...
...
@@ -284,8 +284,9 @@ static int mmsh_open(URLContext *h, const char *uri, int flags)
CLIENTGUID
"Pragma: stream-switch-count=%d
\r\n
"
"Pragma: stream-switch-entry=%s
\r\n
"
"Pragma: no-cache,rate=1.000000,stream-time=%u"
"Connection: Close
\r\n
"
,
host
,
port
,
mmsh
->
request_seq
++
,
mms
->
stream_num
,
stream_selection
);
host
,
port
,
mmsh
->
request_seq
++
,
mms
->
stream_num
,
stream_selection
,
timestamp
);
av_freep
(
&
stream_selection
);
if
(
err
<
0
)
{
av_log
(
NULL
,
AV_LOG_ERROR
,
"Build play request failed!
\n
"
);
...
...
@@ -314,6 +315,11 @@ fail:
return
err
;
}
static
int
mmsh_open
(
URLContext
*
h
,
const
char
*
uri
,
int
flags
)
{
mmsh_open_internal
(
h
,
uri
,
flags
,
0
,
0
);
}
static
int
handle_chunk_type
(
MMSHContext
*
mmsh
)
{
MMSContext
*
mms
=
&
mmsh
->
mms
;
...
...
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