brasero r1588 - in trunk: . src
- From: philippr svn gnome org
- To: svn-commits-list gnome org
- Subject: brasero r1588 - in trunk: . src
- Date: Sun, 30 Nov 2008 17:53:54 +0000 (UTC)
Author: philippr
Date: Sun Nov 30 17:53:54 2008
New Revision: 1588
URL: http://svn.gnome.org/viewvc/brasero?rev=1588&view=rev
Log:
Limit preview of images to some size
Fix #560913 â preview of large images
* src/brasero-player.c (brasero_player_metadata_completed):
Modified:
trunk/ChangeLog
trunk/src/brasero-player.c
Modified: trunk/src/brasero-player.c
==============================================================================
--- trunk/src/brasero-player.c (original)
+++ trunk/src/brasero-player.c Sun Nov 30 17:53:54 2008
@@ -913,7 +913,17 @@
gtk_widget_set_sensitive (player->priv->progress, FALSE);
}
else if (mime && !strncmp ("image/", mime, 6)) {
- brasero_player_image (player);
+ /* Only do that if the image is < 20 M otherwise that's crap
+ * FIXME: maybe a sort of error message here? or use thumbnail? */
+ if (g_file_info_get_size (info) > 100000000) {
+ brasero_player_no_multimedia_stream (player);
+ g_signal_emit (player,
+ brasero_player_signals [ERROR_SIGNAL],
+ 0);
+ }
+ else
+ brasero_player_image (player);
+
return;
}
else {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]