Only set playbin2 to NULL on errors or after 10 seconds of doing nothing
Only set playbin2 to NULL on errors or after 10 seconds of doing nothing

This makes track switches faster and prevents useless state changes.

Setting playbin2 to NULL after 10 seconds of idle is a good idea to
close any audio devices.

See bug #599478.

mediaserver2-plugins/totem-mediaserver2,mediaserver2-plugins/totem-mediaserver2