aboutsummaryrefslogtreecommitdiff
path: root/tools/gst-play.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/gst-play.c')
-rw-r--r--tools/gst-play.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/gst-play.c b/tools/gst-play.c
index 5958e1e..5fb03f8 100644
--- a/tools/gst-play.c
+++ b/tools/gst-play.c
@@ -240,6 +240,9 @@ play_bus_msg (GstBus * bus, GstMessage * msg, gpointer user_data)
g_error_free (err);
g_free (dbg);
+ /* flush any other error messages from the bus and clean up */
+ gst_element_set_state (play->playbin, GST_STATE_NULL);
+
if (play->missing != NULL && play_install_missing_plugins (play)) {
g_print ("New plugins installed, trying again...\n");
--play->cur_idx;