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
db978fb3
Commit
db978fb3
authored
Nov 16, 2012
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
file aout: implement flush operation (kind of)
parent
e007b1d4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
modules/audio_output/file.c
modules/audio_output/file.c
+9
-1
No files found.
modules/audio_output/file.c
View file @
db978fb3
...
...
@@ -72,6 +72,7 @@ static const int pi_channels_maps[CHANNELS_MAX+1] =
*****************************************************************************/
static
int
Open
(
vlc_object_t
*
);
static
void
Play
(
audio_output_t
*
,
block_t
*
);
static
void
Flush
(
audio_output_t
*
,
bool
);
/*****************************************************************************
* Module descriptor
...
...
@@ -157,7 +158,7 @@ static int Start( audio_output_t *p_aout, audio_sample_format_t *restrict fmt )
p_aout
->
time_get
=
NULL
;
p_aout
->
play
=
Play
;
p_aout
->
pause
=
NULL
;
p_aout
->
flush
=
NULL
;
p_aout
->
flush
=
Flush
;
/* Audio format */
psz_format
=
var_InheritString
(
p_aout
,
"audiofile-format"
);
...
...
@@ -314,6 +315,13 @@ static void Play( audio_output_t * p_aout, block_t *p_buffer )
block_Release
(
p_buffer
);
}
static
void
Flush
(
audio_output_t
*
aout
,
bool
wait
)
{
if
(
fflush
(
aout
->
sys
->
p_file
)
)
msg_Err
(
aout
,
"flush error (%m)"
);
(
void
)
wait
;
}
static
int
Open
(
vlc_object_t
*
obj
)
{
audio_output_t
*
aout
=
(
audio_output_t
*
)
obj
;
...
...
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