Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Gautam Chitnis
web-ui-redesign
Commits
d5849883
Commit
d5849883
authored
Nov 01, 2002
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/audio_output/directx.c: forgot an aout_BufferFree().
parent
95efa086
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
modules/audio_output/directx.c
modules/audio_output/directx.c
+5
-1
No files found.
modules/audio_output/directx.c
View file @
d5849883
...
...
@@ -2,7 +2,7 @@
* directx.c: Windows DirectX audio output method
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* $Id: directx.c,v 1.
6
2002/11/01 15:
06:23
gbazin Exp $
* $Id: directx.c,v 1.
7
2002/11/01 15:
43:55
gbazin Exp $
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
*
...
...
@@ -547,12 +547,16 @@ static int DirectxFillBuffer( aout_instance_t *p_aout, int i_frame,
if
(
dsresult
!=
DS_OK
)
{
msg_Warn
(
p_notif
,
"cannot lock buffer"
);
if
(
p_buffer
)
aout_BufferFree
(
p_buffer
);
return
VLC_EGENERIC
;
}
if
(
p_buffer
!=
NULL
)
{
p_aout
->
p_vlc
->
pf_memcpy
(
p_write_position
,
p_buffer
->
p_buffer
,
l_bytes1
);
aout_BufferFree
(
p_buffer
);
}
else
memset
(
p_write_position
,
0
,
l_bytes1
);
...
...
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