[brasero/gnome-2-28] Don't try to make a snapshot of a video with a 0 len



commit e4fc6b8f730bba8c0f339a3a3c2ff1b59419cc60
Author: Philippe Rouquier <bonfire-app wanadoo fr>
Date:   Mon Sep 28 14:46:24 2009 +0200

    Don't try to make a snapshot of a video with a 0 len

 libbrasero-utils/brasero-metadata.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libbrasero-utils/brasero-metadata.c b/libbrasero-utils/brasero-metadata.c
index 709ab74..875852d 100644
--- a/libbrasero-utils/brasero-metadata.c
+++ b/libbrasero-utils/brasero-metadata.c
@@ -645,7 +645,8 @@ brasero_metadata_success (BraseroMetadata *self)
 	}
 
 	/* before leaving, check if we need a snapshot */
-	if (priv->snapshot
+	if (priv->info->len > 0
+	&&  priv->snapshot
 	&&  priv->video_linked
 	&& !priv->snapshot_started)
 		return brasero_metadata_thumbnail (self);
@@ -1429,7 +1430,6 @@ brasero_metadata_new_decoded_pad_cb (GstElement *decode,
 	name = gst_structure_get_name (structure);
 	has_audio = (g_strrstr (name, "audio") != NULL);
 	has_video = (g_strrstr (name, "video") != NULL);
-
 	priv->info->has_audio |= has_audio;
 	priv->info->has_video |= has_video;
 



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