playsink: fix passthrough mode (hopefully)
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Mon, 17 Oct 2011 13:00:05 +0000 (13:00 +0000)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Thu, 3 Nov 2011 08:56:40 +0000 (09:56 +0100)
commitc8e0d215cbaf9ffc0713fe8c060b52af7ffff958
tree72bbd2ad1b26bcafd8f1090dd00abef30f2fff9c
parent2b84b328b1cac2c083fb322f4abb91bf439fb944
playsink: fix passthrough mode (hopefully)

The code was doing counterintuitive rewiring of pads when the
bin did not contain any elements. We now add an identity element
in that case, which makes it simpler, and should fix the AC3
passthrough mode when using pulseaudio (but I don't see the bug
here so can't test).

https://bugzilla.gnome.org/show_bug.cgi?id=661262
gst/playback/gstplaysinkaudioconvert.c
gst/playback/gstplaysinkaudioconvert.h
gst/playback/gstplaysinkvideoconvert.c
gst/playback/gstplaysinkvideoconvert.h