tools: play: set playbin to NULL state on error to flush messages
authorTim-Philipp Müller <tim@centricular.net>
Sat, 7 Sep 2013 18:14:50 +0000 (19:14 +0100)
committerTim-Philipp Müller <tim@centricular.net>
Sat, 7 Sep 2013 18:14:50 +0000 (19:14 +0100)
commit9613f79c1e63ca6a7257484402cc3fb4e0a9fc51
treebe00b221c1f96015ab09bc0364b75b2d2fc311e4
parent8492b956cd3ce23eb38bf78d3aaaeafbcc125e2e
tools: play: set playbin to NULL state on error to flush messages

Just flushing the bus doesn't work here for some reason, so set
playbin to NULL state, which seems to clear all error state and
makes sure we do play the next playable song and don't pick up
'ghost' error messages from previous files on the bus.
tools/gst-play.c