Hi,

If size is unknown or the loaded size is bigger than the nominal size and we get eof use the same display format as a normal download. This will avoid displaying "102 bytes of 97 bytes" or "at 20 bytes" when the file is downloaded and so downloadable from the plugin ui.

cheers,
riccardo
diff --git a/src/swfmoz_player.c b/src/swfmoz_player.c
index 806ead7..8c8f212 100644
--- a/src/swfmoz_player.c
+++ b/src/swfmoz_player.c
@@ -539,7 +539,7 @@ swfmoz_player_loaders_update (GtkListStore *store, GtkTreeIter *iter, SwfdecLoad
     str_loaded = g_format_size_for_display(loaded);
     str_size = g_format_size_for_display(size);
 
-    if (size == loaded)
+    if (size == loaded || ((size < 0 || loaded > size) && eof == TRUE))
       status = g_strdup_printf("%s", str_loaded);
     else if (size < 0)
       status = g_strdup_printf("at %s", str_loaded);
_______________________________________________
Swfdec mailing list
Swfdec@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/swfdec

Reply via email to