[totem-pl-parser] lib: Don't show empty length from quvi



commit 47cf084189b83e2f60ff8e168732bf3a2358a2e8
Author: Bastien Nocera <hadess hadess net>
Date:   Fri Jul 20 13:05:52 2012 +0100

    lib: Don't show empty length from quvi
    
    If it's zero, it's unknown.

 plparse/totem-pl-parser-videosite.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plparse/totem-pl-parser-videosite.c b/plparse/totem-pl-parser-videosite.c
index 44b353b..631f4ca 100644
--- a/plparse/totem-pl-parser-videosite.c
+++ b/plparse/totem-pl-parser-videosite.c
@@ -109,7 +109,7 @@ totem_pl_parser_add_videosite (TotemPlParser *parser,
 	}
 
 	getprop (QUVIPROP_MEDIAURL, video_uri);
-	if (quvi_getprop (v, QUVIPROP_MEDIACONTENTLENGTH, &length) == QUVI_OK)
+	if (quvi_getprop (v, QUVIPROP_MEDIACONTENTLENGTH, &length) == QUVI_OK && length)
 		length_str = g_strdup_printf ("%f", length);
 	else
 		length_str = NULL;



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