projects
/
platform
/
upstream
/
gst-plugins-good.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e317d88
)
pulse: Clear unpositioned flag when setting positions
author
Arun Raghavan
<arun.raghavan@collabora.co.uk>
Tue, 14 Aug 2012 10:08:27 +0000
(15:38 +0530)
committer
Wim Taymans
<wim.taymans@collabora.co.uk>
Wed, 22 Aug 2012 09:38:42 +0000
(11:38 +0200)
If converting a PA channel map to gst channel positions results in a
valid set of channel positions, we clear the unpositioned flag from the
ringbuffer spec.
ext/pulse/pulseutil.c
patch
|
blob
|
history
diff --git
a/ext/pulse/pulseutil.c
b/ext/pulse/pulseutil.c
index 607fdd43691097cc38b8be43bece42c008319d17..84092918596265ba16f68f36fe6119d7c35a3bf3 100644
(file)
--- a/
ext/pulse/pulseutil.c
+++ b/
ext/pulse/pulseutil.c
@@
-279,6
+279,9
@@
gst_pulse_channel_map_to_gst (const pa_channel_map * map,
if (invalid) {
for (i = 0; i < channels; i++)
pos[i] = GST_AUDIO_CHANNEL_POSITION_NONE;
+ } else {
+ if (pos[0] != GST_AUDIO_CHANNEL_POSITION_NONE)
+ spec->info.flags &= ~GST_AUDIO_FLAG_UNPOSITIONED;
}
return spec;