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
6c9537b8
Commit
6c9537b8
authored
Feb 21, 2015
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat/hlsenc: Warn if a non file protocol is used
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
665916ff
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
hlsenc.c
libavformat/hlsenc.c
+4
-0
No files found.
libavformat/hlsenc.c
View file @
6c9537b8
...
...
@@ -247,6 +247,10 @@ static int hls_window(AVFormatContext *s, int last)
int
version
=
hls
->
flags
&
HLS_SINGLE_FILE
?
4
:
3
;
const
char
*
proto
=
avio_find_protocol_name
(
s
->
filename
);
int
use_rename
=
proto
&&
!
strcmp
(
proto
,
"file"
);
static
unsigned
warned_non_file
;
if
(
!
use_rename
&&
!
warned_non_file
++
)
av_log
(
s
,
AV_LOG_ERROR
,
"Cannot use rename on non file protocol, this may lead to races and temporarly partial files
\n
"
);
snprintf
(
temp_filename
,
sizeof
(
temp_filename
),
use_rename
?
"%s.tmp"
:
"%s"
,
s
->
filename
);
if
((
ret
=
avio_open2
(
&
out
,
temp_filename
,
AVIO_FLAG_WRITE
,
...
...
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