Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
BC
public
mediastreamer2
Commits
4b8d2b65
Commit
4b8d2b65
authored
Mar 25, 2013
by
Simon Morlat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug in pulseaudio support
parent
24629216
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
src/audiofilters/pulseaudio.c
src/audiofilters/pulseaudio.c
+7
-0
No files found.
src/audiofilters/pulseaudio.c
View file @
4b8d2b65
...
...
@@ -215,10 +215,17 @@ static int pulse_read_set_nchannels(MSFilter *f, void *arg){
return
0
;
}
static
int
pulse_read_get_nchannels
(
MSFilter
*
f
,
void
*
arg
){
PulseReadState
*
s
=
(
PulseReadState
*
)
f
->
data
;
*
(
int
*
)
arg
=
s
->
channels
;
return
0
;
}
static
MSFilterMethod
pulse_read_methods
[]
=
{
{
MS_FILTER_SET_SAMPLE_RATE
,
pulse_read_set_sr
},
{
MS_FILTER_GET_SAMPLE_RATE
,
pulse_read_get_sr
},
{
MS_FILTER_SET_NCHANNELS
,
pulse_read_set_nchannels
},
{
MS_FILTER_GET_NCHANNELS
,
pulse_read_get_nchannels
},
{
0
,
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