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
c25d1ba5
Commit
c25d1ba5
authored
Jul 19, 2013
by
Nicolas George
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavu/log: print prefix after \r.
Should fix trac ticket #2797 because of the progress line.
parent
b6740179
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
log.c
libavutil/log.c
+4
-2
No files found.
libavutil/log.c
View file @
c25d1ba5
...
...
@@ -190,8 +190,10 @@ static void format_line(void *ptr, int level, const char *fmt, va_list vl,
vsnprintf
(
part
[
2
],
part_size
,
fmt
,
vl
);
if
(
*
part
[
0
]
||
*
part
[
1
]
||
*
part
[
2
])
*
print_prefix
=
strlen
(
part
[
2
])
&&
part
[
2
][
strlen
(
part
[
2
])
-
1
]
==
'\n'
;
if
(
*
part
[
0
]
||
*
part
[
1
]
||
*
part
[
2
])
{
char
lastc
=
strlen
(
part
[
2
])
?
part
[
2
][
strlen
(
part
[
2
])
-
1
]
:
0
;
*
print_prefix
=
lastc
==
'\n'
||
lastc
==
'\r'
;
}
}
void
av_log_format_line
(
void
*
ptr
,
int
level
,
const
char
*
fmt
,
va_list
vl
,
...
...
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