[brasero] Don't try to make a snapshot of a video with a 0 len
- From: Philippe Rouquier <philippr src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [brasero] Don't try to make a snapshot of a video with a 0 len
- Date: Sun, 4 Oct 2009 12:20:02 +0000 (UTC)
commit 4d42975dfddbf33742b29c3576b2bfa37a13d2d9
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 f7c5e79..1c81133 100644
--- a/libbrasero-utils/brasero-metadata.c
+++ b/libbrasero-utils/brasero-metadata.c
@@ -720,7 +720,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);
@@ -1589,7 +1590,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]