[totem/wip/hadess/remaining-time: 6/8] backend: Add special-case for unknown length
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem/wip/hadess/remaining-time: 6/8] backend: Add special-case for unknown length
- Date: Tue, 19 Feb 2019 03:13:30 +0000 (UTC)
commit c3051c40cd7a710d35fd91d06527f475fba1d0fa
Author: Bastien Nocera <hadess hadess net>
Date: Tue Feb 19 04:02:14 2019 +0100
backend: Add special-case for unknown length
src/backend/bacon-time-label.c | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/src/backend/bacon-time-label.c b/src/backend/bacon-time-label.c
index d71bfc5aa..20b1e8da0 100644
--- a/src/backend/bacon-time-label.c
+++ b/src/backend/bacon-time-label.c
@@ -134,6 +134,10 @@ bacon_time_label_set_time (BaconTimeLabel *label,
{
g_return_if_fail (BACON_IS_TIME_LABEL (label));
+ if (label->priv->length == -1 &&
+ length == -1)
+ return;
+
if (_time / 1000 == label->priv->time / 1000 &&
length / 1000 == label->priv->length / 1000)
return;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]