streamsynchronizer: Use the same waiting function for EOS and stream switches
authorSong Bing <b06498@freescale.com>
Sun, 15 Feb 2015 05:51:36 +0000 (13:51 +0800)
committerSebastian Dröge <sebastian@centricular.com>
Mon, 16 Feb 2015 12:34:35 +0000 (14:34 +0200)
commitfb9ca25f7f0ee850f73b2c323a2c3a8e7d2d92fc
treea3a544277802e5a7814a890fe5c95c8f7f764b4a
parenteeea911c2e477cc51ed72ac5ce2da34caa4115e3
streamsynchronizer: Use the same waiting function for EOS and stream switches

Also improve the waiting condition for stream switches, which was assuming
before that the condition variable will only stop waiting once when it is
signaled. But the documentation says that there might be spurious wakeups.

https://bugzilla.gnome.org/show_bug.cgi?id=736655
gst/playback/gststreamsynchronizer.c