projects
/
profile
/
ivi
/
pulseaudio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8919898
)
treat a channel map only then as compatible with a sample spec if it is valid
author
Lennart Poettering
<lennart@poettering.net>
Fri, 3 Oct 2008 15:14:02 +0000
(17:14 +0200)
committer
Lennart Poettering
<lennart@poettering.net>
Fri, 3 Oct 2008 15:14:02 +0000
(17:14 +0200)
src/pulse/channelmap.c
patch
|
blob
|
history
diff --git
a/src/pulse/channelmap.c
b/src/pulse/channelmap.c
index
db6577e
..
fd313bd
100644
(file)
--- a/
src/pulse/channelmap.c
+++ b/
src/pulse/channelmap.c
@@
-569,5
+569,11
@@
int pa_channel_map_compatible(const pa_channel_map *map, const pa_sample_spec *s
pa_assert(map);
pa_assert(ss);
+ if (!pa_channel_map_valid(map))
+ return 0;
+
+ if (!pa_sample_spec_valid(ss))
+ return 0;
+
return map->channels == ss->channels;
}