[Xfce4-commits] <parole:master> Fix the seek-value to always be >= 0 The playback-position can never be < 0

Simon Steinbeiss noreply at xfce.org
Sat Mar 9 01:04:01 CET 2013


Updating branch refs/heads/master
         to 11b7f0286bfd57ce0f3411ef1826854f853df86e (commit)
       from 48e8f830dc1e1e4cc1da3a26fa200b9506b69c78 (commit)

commit 11b7f0286bfd57ce0f3411ef1826854f853df86e
Author: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>
Date:   Sat Mar 9 01:01:05 2013 +0100

    Fix the seek-value to always be >= 0
    The playback-position can never be < 0

 src/parole-player.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/parole-player.c b/src/parole-player.c
index 5dc832d..a4bbd3f 100644
--- a/src/parole-player.c
+++ b/src/parole-player.c
@@ -1650,6 +1650,7 @@ void parole_player_seekb_cb (GtkWidget *widget, ParolePlayer *player, gdouble se
 	seek =  parole_gst_get_stream_position (PAROLE_GST (player->priv->gst) )
 			-
 			seek;
+	if ( seek < 0 ) { seek = 0; }
 	parole_gst_seek (PAROLE_GST (player->priv->gst), seek);
 	parole_player_change_range_value (player, seek);
 }


More information about the Xfce4-commits mailing list