playbin2: actually use configured audio/video sinks
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Thu, 28 May 2009 14:21:42 +0000 (15:21 +0100)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Thu, 28 May 2009 14:30:27 +0000 (15:30 +0100)
commit7620d8800de108a686c61f64787e27e98bfaf3e2
tree61205a8a0b82e8feaea06f105f0efc691b487411
parent5f69ffea56cb6af9e95af7855a13f2fa06586961
playbin2: actually use configured audio/video sinks

playbin2 inadvertently used autoaudiosink and autovideosink up to now,
since it would overwrite the sinks configured via the "audio-sink"
and "video-sink" properties with the stream-specific group sinks when
configuring the outputs. Those are usually NULL however, so that would
overwrite the configured sinks with NULL which makes playbin2 then
default to the auto sinks. Fix this by keeping a reference to each
configured sink in playbin2 and setting up the right sinks depending
on whether there is a stream-specific sink or not.

Fixes #584020.
gst/playback/gstplaybin2.c
gst/playback/gstplaysink.c