[brasero] Fix #618942 - Bad info when burning, high CPU usage and slow burn When a plugin is piping data to g
- From: Philippe Rouquier <philippr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [brasero] Fix #618942 - Bad info when burning, high CPU usage and slow burn When a plugin is piping data to g
- Date: Tue, 18 May 2010 19:47:25 +0000 (UTC)
commit c932441dca20be0a2bbf36a829c34b3e11cec1a6
Author: Philippe Rouquier <bonfire-app wanadoo fr>
Date: Tue May 18 23:30:11 2010 +0200
Fix #618942 - Bad info when burning, high CPU usage and slow burn
When a plugin is piping data to growisofs do not try to get size of data
plugins/growisofs/burn-growisofs.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/plugins/growisofs/burn-growisofs.c b/plugins/growisofs/burn-growisofs.c
index 4e7f0be..03f41bd 100644
--- a/plugins/growisofs/burn-growisofs.c
+++ b/plugins/growisofs/burn-growisofs.c
@@ -633,6 +633,11 @@ brasero_growisofs_set_argv (BraseroProcess *process,
if (!BRASERO_IS_TRACK_DATA (track))
return BRASERO_BURN_NOT_SUPPORTED;
+ /* If another job is piping data to us leave it to the job to
+ * retrieve the data size. */
+ if (brasero_job_get_fd_in (BRASERO_JOB (process), NULL) == BRASERO_BURN_OK)
+ return BRASERO_BURN_NOT_SUPPORTED;
+
result = brasero_growisofs_set_argv_record (BRASERO_GROWISOFS (process),
argv,
error);
@@ -649,6 +654,7 @@ brasero_growisofs_set_argv (BraseroProcess *process,
return result;
}
+
static void
brasero_growisofs_class_init (BraseroGrowisofsClass *klass)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]