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
d67c1dda
Commit
d67c1dda
authored
Dec 04, 2017
by
Steven Liu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat/hlsenc: fix compiling error when disable-network
parent
5ff0d2ac
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
hlsenc.c
libavformat/hlsenc.c
+5
-1
No files found.
libavformat/hlsenc.c
View file @
d67c1dda
...
...
@@ -45,7 +45,9 @@
#include "avformat.h"
#include "avio_internal.h"
#if CONFIG_HTTP_PROTOCOL
#include "http.h"
#endif
#include "hlsplaylist.h"
#include "internal.h"
#include "os_support.h"
...
...
@@ -245,13 +247,15 @@ static int hlsenc_io_open(AVFormatContext *s, AVIOContext **pb, char *filename,
AVDictionary
**
options
)
{
HLSContext
*
hls
=
s
->
priv_data
;
int
http_base_proto
=
is_http_proto
(
filename
);
int
err
;
int
err
=
AVERROR_MUXER_NOT_FOUND
;
if
(
!*
pb
||
!
http_base_proto
||
!
hls
->
http_persistent
)
{
err
=
s
->
io_open
(
s
,
pb
,
filename
,
AVIO_FLAG_WRITE
,
options
);
#if CONFIG_HTTP_PROTOCOL
}
else
{
URLContext
*
http_url_context
=
ffio_geturlcontext
(
*
pb
);
av_assert0
(
http_url_context
);
err
=
ff_http_do_new_request
(
http_url_context
,
filename
);
#endif
}
return
err
;
}
...
...
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