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
a78b310c
Commit
a78b310c
authored
Oct 28, 2002
by
Johan Bilien
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* plugins/dsp/aout_dsp.c: replaced O_NONBLOCK by O_NDELAY, and put the device
back in blocking mode once open (the xine way)
parent
a9167db8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
plugins/dsp/aout_dsp.c
plugins/dsp/aout_dsp.c
+4
-2
No files found.
plugins/dsp/aout_dsp.c
View file @
a78b310c
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* aout_dsp.c : dsp functions library
* aout_dsp.c : dsp functions library
*****************************************************************************
*****************************************************************************
* Copyright (C) 1999-2001 VideoLAN
* Copyright (C) 1999-2001 VideoLAN
* $Id: aout_dsp.c,v 1.27.2.
1 2002/10/28 22:48:4
5 jobi Exp $
* $Id: aout_dsp.c,v 1.27.2.
2 2002/10/28 23:49:0
5 jobi Exp $
*
*
* Authors: Michel Kaempf <maxx@via.ecp.fr>
* Authors: Michel Kaempf <maxx@via.ecp.fr>
* Samuel Hocevar <sam@zoy.org>
* Samuel Hocevar <sam@zoy.org>
...
@@ -120,7 +120,7 @@ static int aout_Open( aout_thread_t *p_aout )
...
@@ -120,7 +120,7 @@ static int aout_Open( aout_thread_t *p_aout )
/* Open the sound device */
/* Open the sound device */
if
(
(
p_aout
->
p_sys
->
i_fd
=
open
(
p_aout
->
p_sys
->
psz_device
,
if
(
(
p_aout
->
p_sys
->
i_fd
=
open
(
p_aout
->
p_sys
->
psz_device
,
O_WRONLY
|
O_N
ONBLOCK
))
<
0
)
O_WRONLY
|
O_N
DELAY
))
<
0
)
{
{
intf_ErrMsg
(
"aout error: can't open audio device (%s)"
,
intf_ErrMsg
(
"aout error: can't open audio device (%s)"
,
p_aout
->
p_sys
->
psz_device
);
p_aout
->
p_sys
->
psz_device
);
...
@@ -128,6 +128,8 @@ static int aout_Open( aout_thread_t *p_aout )
...
@@ -128,6 +128,8 @@ static int aout_Open( aout_thread_t *p_aout )
free
(
p_aout
->
p_sys
);
free
(
p_aout
->
p_sys
);
return
(
-
1
);
return
(
-
1
);
}
}
fcntl
(
p_aout
->
p_sys
->
i_fd
,
F_SETFL
,
fcntl
(
p_aout
->
p_sys
->
i_fd
,
F_GETFL
)
&~
FNDELAY
);
return
(
0
);
return
(
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