Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
F
ffworker
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Video AG Infrastruktur
ffworker
Commits
6de49420
Commit
6de49420
authored
Jan 04, 2018
by
Julian Rother
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Made the logbuffer stream publicly available to allow non-av writes
parent
d79c668d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
util.h
util.h
+1
-0
util/avlogbuf.c
util/avlogbuf.c
+1
-1
No files found.
util.h
View file @
6de49420
...
...
@@ -32,6 +32,7 @@ void parse_dict(AVDictionary **d, char *s);
void
parse_chapters
(
AVFormatContext
*
ctx
,
char
*
s
,
int64_t
duration
);
/* Logging */
extern
FILE
*
logstream
;
void
init_avlogbuf
(
void
);
void
avlogbuf_callback
(
void
*
classp
,
int
level
,
const
char
*
fmt
,
va_list
ap
);
char
*
get_avlogbuf
(
void
);
...
...
util/avlogbuf.c
View file @
6de49420
...
...
@@ -3,9 +3,9 @@
#include "../util.h"
FILE
*
logstream
;
static
char
*
logbuffer
;
static
size_t
logsize
;
static
FILE
*
logstream
;
static
pthread_mutex_t
mutex
=
PTHREAD_MUTEX_INITIALIZER
;
static
char
prevbuf
[
200
]
=
""
;
static
int
repeats
=
0
;
...
...
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