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
eab50dcf
Commit
eab50dcf
authored
Apr 27, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auhal: don't mix vlc_ and pthread_ function calls
parent
c30432e5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
10 deletions
+4
-10
modules/audio_output/auhal.c
modules/audio_output/auhal.c
+4
-10
No files found.
modules/audio_output/auhal.c
View file @
eab50dcf
...
...
@@ -24,13 +24,12 @@
/*****************************************************************************
* Preamble
*****************************************************************************/
#include <unistd.h>
#include <sys/time.h>
/* gettimeofday() */
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include <unistd.h>
#include <vlc/vlc.h>
#include <vlc_interface.h>
#include <vlc_aout.h>
...
...
@@ -1190,8 +1189,6 @@ static int AudioStreamChangeFormat( aout_instance_t *p_aout, AudioStreamID i_str
UInt32
i_param_size
=
0
;
int
i
;
struct
timeval
now
;
struct
timespec
timeout
;
struct
{
vlc_mutex_t
lock
;
vlc_cond_t
cond
;
}
w
;
msg_Dbg
(
p_aout
,
STREAM_FORMAT_MSG
(
"setting stream format: "
,
change_format
)
);
...
...
@@ -1229,12 +1226,9 @@ static int AudioStreamChangeFormat( aout_instance_t *p_aout, AudioStreamID i_str
for
(
i
=
0
;
i
<
5
;
i
++
)
{
AudioStreamBasicDescription
actual_format
;
mtime_t
timeout
=
mtime
()
+
500000
;
gettimeofday
(
&
now
,
NULL
);
timeout
.
tv_sec
=
now
.
tv_sec
;
timeout
.
tv_nsec
=
(
now
.
tv_usec
+
500000
)
*
1000
;
if
(
pthread_cond_timedwait
(
&
w
.
cond
,
&
w
.
lock
,
&
timeout
)
)
if
(
vlc_object_timedwait
(
&
w
,
timeout
)
)
{
msg_Dbg
(
p_aout
,
"reached timeout"
);
}
...
...
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