playbin2: return NOT_LINKED for unselected streams
authorWim Taymans <wim.taymans@collabora.co.uk>
Tue, 17 Mar 2009 10:54:40 +0000 (11:54 +0100)
committerWim Taymans <wim.taymans@collabora.co.uk>
Tue, 17 Mar 2009 10:54:40 +0000 (11:54 +0100)
commita8579ffea0e83c3bbcce40d4a2bb72bf7ecd87a7
treea63960acf9fec365436b1b14f661ea349fc51dd7
parent5021c930ba08d8fcd290bc3d319404c747030600
playbin2: return NOT_LINKED for unselected streams

When streams are not selected in the selector, return NOT_LINKED so that
upstream elements can skip decoding. Only do this for audio and video pads
because for text streams the overhead is smaller and they could come from
external files.
gst/playback/gstplaybin2.c