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
9c6777bd
Commit
9c6777bd
authored
Dec 01, 2011
by
Martin Storsjö
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mmsh: Properly clean up if the second ffurl_alloc failed
Signed-off-by:
Martin Storsjö
<
martin@martin.st
>
parent
02490bf3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
mmsh.c
libavformat/mmsh.c
+3
-3
No files found.
libavformat/mmsh.c
View file @
9c6777bd
...
@@ -262,9 +262,9 @@ static int mmsh_open(URLContext *h, const char *uri, int flags)
...
@@ -262,9 +262,9 @@ static int mmsh_open(URLContext *h, const char *uri, int flags)
// close the socket and then reopen it for sending the second play request.
// close the socket and then reopen it for sending the second play request.
ffurl_close
(
mms
->
mms_hd
);
ffurl_close
(
mms
->
mms_hd
);
memset
(
headers
,
0
,
sizeof
(
headers
));
memset
(
headers
,
0
,
sizeof
(
headers
));
if
(
ffurl_alloc
(
&
mms
->
mms_hd
,
httpname
,
AVIO_FLAG_READ
,
if
(
(
err
=
ffurl_alloc
(
&
mms
->
mms_hd
,
httpname
,
AVIO_FLAG_READ
,
&
h
->
interrupt_callback
)
<
0
)
{
&
h
->
interrupt_callback
)
)
<
0
)
{
return
AVERROR
(
EIO
)
;
goto
fail
;
}
}
stream_selection
=
av_mallocz
(
mms
->
stream_num
*
19
+
1
);
stream_selection
=
av_mallocz
(
mms
->
stream_num
*
19
+
1
);
if
(
!
stream_selection
)
if
(
!
stream_selection
)
...
...
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