Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VLC
Manage
Activity
Members
Labels
Plan
Issues
4k
Issue boards
Milestones
Code
Merge requests
450
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VideoLAN
VLC
Commits
2e497105
Commit
2e497105
authored
11 years ago
by
David Fuhrmann
Browse files
Options
Downloads
Patches
Plain Diff
auhal: always do a final format check in stream change function
parent
2e4af369
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/audio_output/auhal.c
+6
-3
6 additions, 3 deletions
modules/audio_output/auhal.c
with
6 additions
and
3 deletions
modules/audio_output/auhal.c
+
6
−
3
View file @
2e497105
...
...
@@ -1899,6 +1899,12 @@ static int AudioStreamChangeFormat(audio_output_t *p_aout, AudioStreamID i_strea
UInt32
i_param_size
=
sizeof
(
AudioStreamBasicDescription
);
for
(
int
i
=
0
;
i
<
5
;
i
++
)
{
/* Callback is not always invoked. So first check if format is already set. */
if
(
i
>
0
)
{
mtime_t
timeout
=
mdate
()
+
500000
;
if
(
vlc_cond_timedwait
(
&
w
.
cond
,
&
w
.
lock
,
timeout
))
msg_Dbg
(
p_aout
,
"reached timeout"
);
}
err
=
AudioObjectGetPropertyData
(
i_stream_id
,
&
physicalFormatAddress
,
0
,
NULL
,
&
i_param_size
,
&
actual_format
);
msg_Dbg
(
p_aout
,
STREAM_FORMAT_MSG
(
"actual format in use: "
,
actual_format
));
...
...
@@ -1910,9 +1916,6 @@ static int AudioStreamChangeFormat(audio_output_t *p_aout, AudioStreamID i_strea
}
/* We need to check again */
mtime_t
timeout
=
mdate
()
+
500000
;
if
(
vlc_cond_timedwait
(
&
w
.
cond
,
&
w
.
lock
,
timeout
))
msg_Dbg
(
p_aout
,
"reached timeout"
);
}
out:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment