Clear status when user presses play-button.
authorIlpo Ruotsalainen <ilpo.ruotsalainen@movial.fi>
Thu, 2 Oct 2008 06:58:20 +0000 (09:58 +0300)
committerIlpo Ruotsalainen <ilpo.ruotsalainen@movial.fi>
Thu, 2 Oct 2008 06:58:20 +0000 (09:58 +0300)
isatis-player/player.c

index 37bab9b..e23c771 100644 (file)
@@ -92,6 +92,10 @@ static void start_playback(PlayerInternal *priv)
 {
        g_debug("starting playback");
 
+       /* Clear the status display when coming from NULL state (old errors) */
+       if (priv->target_state == GST_STATE_NULL)
+               gtk_progress_bar_set_text(GTK_PROGRESS_BAR(priv->progressbar), "");
+
        priv->target_state = GST_STATE_PLAYING;
        gtk_widget_set_name(GTK_WIDGET(priv->playbutton), "pause-button");