[brasero] Don't display a file with a 0 length



commit 9f446d403565702af37742dfd2d98d463e93a266
Author: Philippe Rouquier <bonfire-app wanadoo fr>
Date:   Mon Sep 28 14:47:38 2009 +0200

    Don't display a file with a 0 length

 src/brasero-player.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/brasero-player.c b/src/brasero-player.c
index b6b739a..1767b9e 100644
--- a/src/brasero-player.c
+++ b/src/brasero-player.c
@@ -886,6 +886,11 @@ brasero_player_metadata_completed (GObject *obj,
 		return;
 	}
 
+	if (g_file_info_get_attribute_uint64 (info, BRASERO_IO_LEN) <= 0) {
+		brasero_player_no_multimedia_stream (player);
+		return;
+	}
+
 	mime = g_file_info_get_content_type (info);
 
 	/* based on the mime type, we try to determine the type of file */



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