brasero r1143 - in trunk: . src/plugins/dvdauthor



Author: philippr
Date: Fri Aug 22 12:51:12 2008
New Revision: 1143
URL: http://svn.gnome.org/viewvc/brasero?rev=1143&view=rev

Log:
	Add progress report to dvdauthor plugin

	* src/plugins/dvdauthor/burn-dvdauthor.c
	(brasero_dvd_author_read_stderr):


Modified:
   trunk/ChangeLog
   trunk/src/plugins/dvdauthor/burn-dvdauthor.c

Modified: trunk/src/plugins/dvdauthor/burn-dvdauthor.c
==============================================================================
--- trunk/src/plugins/dvdauthor/burn-dvdauthor.c	(original)
+++ trunk/src/plugins/dvdauthor/burn-dvdauthor.c	Fri Aug 22 12:51:12 2008
@@ -124,8 +124,13 @@
 brasero_dvd_author_read_stderr (BraseroProcess *process,
 				const gchar *line)
 {
-	if (!strstr (line, ""))
-		return BRASERO_BURN_OK;
+	gint percent = 0;
+
+	if (sscanf (line, "STAT: fixing VOBU at %*s (%*d/%*d, %d%%)", &percent) == 1) {
+		brasero_job_start_progress (BRASERO_JOB (process), FALSE);
+		brasero_job_set_progress (BRASERO_JOB (process),
+					  (gdouble) ((gdouble) percent) / 100.0);
+	}
 
 	return BRASERO_BURN_OK;
 }



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