Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
aca40fdc
Commit
aca40fdc
authored
Jan 29, 2012
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat mux: use avformat_write_header()
Pass its error output to msg_Err with %m
parent
91899a03
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
modules/demux/avformat/mux.c
modules/demux/avformat/mux.c
+9
-2
No files found.
modules/demux/avformat/mux.c
View file @
aca40fdc
...
@@ -363,11 +363,18 @@ static int Mux( sout_mux_t *p_mux )
...
@@ -363,11 +363,18 @@ static int Mux( sout_mux_t *p_mux )
if
(
p_sys
->
b_write_header
)
if
(
p_sys
->
b_write_header
)
{
{
int
error
;
msg_Dbg
(
p_mux
,
"writing header"
);
msg_Dbg
(
p_mux
,
"writing header"
);
if
(
av_write_header
(
p_sys
->
oc
)
<
0
)
#if (LIBAVFORMAT_VERSION_INT >= ((53<<16)+(2<<8)+0))
error
=
avformat_write_header
(
p_sys
->
oc
,
NULL
/* options */
);
#else
error
=
av_write_header
(
p_sys
->
oc
);
#endif
if
(
error
<
0
)
{
{
msg_Err
(
p_mux
,
"could not write header"
);
errno
=
AVUNERROR
(
error
);
msg_Err
(
p_mux
,
"could not write header: %m"
);
p_sys
->
b_write_header
=
false
;
p_sys
->
b_write_header
=
false
;
p_sys
->
b_error
=
true
;
p_sys
->
b_error
=
true
;
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
...
...
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