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
c0f2e071
Commit
c0f2e071
authored
Nov 25, 2013
by
Stefano Sabatini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavf/segment: add a few log messages when avio_open2() fails
parent
5e278c19
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
segment.c
libavformat/segment.c
+9
-3
No files found.
libavformat/segment.c
View file @
c0f2e071
...
...
@@ -203,8 +203,10 @@ static int segment_start(AVFormatContext *s, int write_header)
return
err
;
if
((
err
=
avio_open2
(
&
oc
->
pb
,
oc
->
filename
,
AVIO_FLAG_WRITE
,
&
s
->
interrupt_callback
,
NULL
))
<
0
)
&
s
->
interrupt_callback
,
NULL
))
<
0
)
{
av_log
(
s
,
AV_LOG_ERROR
,
"Failed to open segment '%s'
\n
"
,
oc
->
filename
);
return
err
;
}
if
(
oc
->
oformat
->
priv_class
&&
oc
->
priv_data
)
av_opt_set
(
oc
->
priv_data
,
"resend_headers"
,
"1"
,
0
);
/* mpegts specific */
...
...
@@ -225,8 +227,10 @@ static int segment_list_open(AVFormatContext *s)
ret
=
avio_open2
(
&
seg
->
list_pb
,
seg
->
list
,
AVIO_FLAG_WRITE
,
&
s
->
interrupt_callback
,
NULL
);
if
(
ret
<
0
)
if
(
ret
<
0
)
{
av_log
(
s
,
AV_LOG_ERROR
,
"Failed to open segment list '%s'
\n
"
,
seg
->
list
);
return
ret
;
}
if
(
seg
->
list_type
==
LIST_TYPE_M3U8
&&
seg
->
segment_list_entries
)
{
SegmentListEntry
*
entry
;
...
...
@@ -615,8 +619,10 @@ static int seg_write_header(AVFormatContext *s)
if
(
seg
->
write_header_trailer
)
{
if
((
ret
=
avio_open2
(
&
oc
->
pb
,
oc
->
filename
,
AVIO_FLAG_WRITE
,
&
s
->
interrupt_callback
,
NULL
))
<
0
)
&
s
->
interrupt_callback
,
NULL
))
<
0
)
{
av_log
(
s
,
AV_LOG_ERROR
,
"Failed to open segment '%s'
\n
"
,
oc
->
filename
);
goto
fail
;
}
}
else
{
if
((
ret
=
open_null_ctx
(
&
oc
->
pb
))
<
0
)
goto
fail
;
...
...
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