[brasero] Try to improve progress reporting when transcoding



commit 4aa88c9fcbcfdce18946168d6257c39f224ae03e
Author: Philippe Rouquier <bonfire-app wanadoo fr>
Date:   Mon Jun 22 18:22:16 2009 +0200

    Try to improve progress reporting when transcoding

 plugins/transcode/burn-vob.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/plugins/transcode/burn-vob.c b/plugins/transcode/burn-vob.c
index 15a38fb..a9033de 100644
--- a/plugins/transcode/burn-vob.c
+++ b/plugins/transcode/burn-vob.c
@@ -1131,6 +1131,12 @@ brasero_vob_clock_tick (BraseroJob *job)
 	gst_element_query_duration (priv->pipeline, &format, &duration);
 	gst_element_query_position (priv->pipeline, &format, &position);
 
+	if (duration <= 0.0 || position <= 0.0) {
+		format = GST_FORMAT_BYTES;
+		gst_element_query_duration (priv->pipeline, &format, &duration);
+		gst_element_query_position (priv->pipeline, &format, &position);
+	}
+
 	if (duration > 0.0 && position > 0.0) {
 		gdouble progress;
 



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