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
6739e224
Commit
6739e224
authored
Aug 12, 2011
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Auhal: remove unnecessary variables
parent
4308632c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
modules/audio_output/auhal.c
modules/audio_output/auhal.c
+2
-6
No files found.
modules/audio_output/auhal.c
View file @
6739e224
...
...
@@ -612,7 +612,6 @@ static int OpenSPDIF( audio_output_t * p_aout )
UInt32
i_param_size
=
0
,
b_mix
=
0
;
Boolean
b_writeable
=
false
;
AudioStreamID
*
p_streams
=
NULL
;
UInt32
i_streams
=
0
;
/* Start doing the SPDIF setup proces */
p_sys
->
b_digital
=
true
;
...
...
@@ -658,7 +657,6 @@ static int OpenSPDIF( audio_output_t * p_aout )
return
false
;
}
i_streams
=
i_param_size
/
sizeof
(
AudioStreamID
);
p_streams
=
(
AudioStreamID
*
)
malloc
(
i_param_size
);
if
(
p_streams
==
NULL
)
return
false
;
...
...
@@ -673,7 +671,7 @@ static int OpenSPDIF( audio_output_t * p_aout )
}
AudioObjectPropertyAddress
physicalFormatsAddress
=
{
kAudioStreamPropertyAvailablePhysicalFormats
,
kAudioObjectPropertyScopeGlobal
,
0
};
for
(
unsigned
i
=
0
;
i
<
i_
streams
&&
p_sys
->
i_stream_index
<
0
;
i
++
)
for
(
unsigned
i
=
0
;
i
<
i_
param_size
/
sizeof
(
AudioStreamID
)
&&
p_sys
->
i_stream_index
<
0
;
i
++
)
{
/* Find a stream with a cac3 stream */
AudioStreamRangedDescription
*
p_format_list
=
NULL
;
...
...
@@ -1072,7 +1070,6 @@ static int AudioDeviceSupportsDigital( audio_output_t *p_aout, AudioDeviceID i_d
OSStatus
err
=
noErr
;
UInt32
i_param_size
=
0
;
AudioStreamID
*
p_streams
=
NULL
;
int
i_streams
=
0
;
bool
b_return
=
false
;
/* Retrieve all the output streams */
...
...
@@ -1084,7 +1081,6 @@ static int AudioDeviceSupportsDigital( audio_output_t *p_aout, AudioDeviceID i_d
return
false
;
}
i_streams
=
i_param_size
/
sizeof
(
AudioStreamID
);
p_streams
=
(
AudioStreamID
*
)
malloc
(
i_param_size
);
if
(
p_streams
==
NULL
)
return
VLC_ENOMEM
;
...
...
@@ -1096,7 +1092,7 @@ static int AudioDeviceSupportsDigital( audio_output_t *p_aout, AudioDeviceID i_d
return
false
;
}
for
(
int
i
=
0
;
i
<
i_streams
;
i
++
)
for
(
unsigned
i
=
0
;
i
<
i_param_size
/
sizeof
(
AudioStreamID
)
;
i
++
)
{
if
(
AudioStreamSupportsDigital
(
p_aout
,
p_streams
[
i
]
)
)
b_return
=
true
;
...
...
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