Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
902e6ae8
Commit
902e6ae8
authored
Oct 12, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use setvbuf instead of repeated fflush
parent
0c3523ac
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
modules/misc/logger.c
modules/misc/logger.c
+2
-1
No files found.
modules/misc/logger.c
View file @
902e6ae8
...
@@ -266,6 +266,8 @@ static int Open( vlc_object_t *p_this )
...
@@ -266,6 +266,8 @@ static int Open( vlc_object_t *p_this )
if
(
psz_rrd_file
&&
*
psz_rrd_file
)
if
(
psz_rrd_file
&&
*
psz_rrd_file
)
{
{
p_intf
->
p_sys
->
p_rrd
=
utf8_fopen
(
psz_rrd_file
,
"w"
);
p_intf
->
p_sys
->
p_rrd
=
utf8_fopen
(
psz_rrd_file
,
"w"
);
if
(
p_intf
->
p_sys
->
p_rrd
!=
NULL
)
setvbuf
(
p_intf
->
p_sys
->
p_rrd
,
NULL
,
_IOLBF
,
BUFSIZ
);
}
}
free
(
psz_rrd_file
);
free
(
psz_rrd_file
);
...
@@ -454,6 +456,5 @@ static void DoRRD( intf_thread_t *p_intf )
...
@@ -454,6 +456,5 @@ static void DoRRD( intf_thread_t *p_intf )
fprintf
(
p_intf
->
p_sys
->
p_rrd
,
fprintf
(
p_intf
->
p_sys
->
p_rrd
,
"%"
PRIi64
":%lld.%03llu:%lld.%03llu:%lld.%03llu
\n
"
,
"%"
PRIi64
":%lld.%03llu:%lld.%03llu:%lld.%03llu
\n
"
,
now
,
in
.
quot
,
in
.
rem
,
dm
.
quot
,
dm
.
rem
,
out
.
quot
,
out
.
rem
);
now
,
in
.
quot
,
in
.
rem
,
dm
.
quot
,
dm
.
rem
,
out
.
quot
,
out
.
rem
);
fflush
(
p_intf
->
p_sys
->
p_rrd
);
}
}
}
}
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