[totem] backend: Fix incorrect time label when starting playback



commit 21f382b871aab8e44cb8f90cb66c8ddffa66ac52
Author: Bastien Nocera <hadess hadess net>
Date:   Tue Feb 4 17:54:09 2014 +0100

    backend: Fix incorrect time label when starting playback
    
    We weren't changing the label when the length of the film was known,
    so we had the hour field missing on one side, and 1:23:00 changing on
    the other, until we reached the first second of playback.

 src/backend/bacon-time-label.c |    9 ++-------
 1 files changed, 2 insertions(+), 7 deletions(-)
---
diff --git a/src/backend/bacon-time-label.c b/src/backend/bacon-time-label.c
index 81583dc..c71f5cc 100644
--- a/src/backend/bacon-time-label.c
+++ b/src/backend/bacon-time-label.c
@@ -133,14 +133,9 @@ bacon_time_label_set_time (BaconTimeLabel *label,
 {
        g_return_if_fail (BACON_IS_TIME_LABEL (label));
 
-       if (!label->priv->remaining) {
-               if (_time / 1000 == label->priv->time / 1000)
-                       return;
-       } else {
-               if (_time / 1000 == label->priv->time / 1000 &&
-                   length / 1000 == label->priv->length / 1000)
+       if (_time / 1000 == label->priv->time / 1000 &&
+           length / 1000 == label->priv->length / 1000)
                return;
-       }
 
        label->priv->time = _time;
        label->priv->length = length;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]