[brasero] Try to improve progress reporting when transcoding
- From: Philippe Rouquier <philippr src gnome org>
- To: svn-commits-list gnome org
- Subject: [brasero] Try to improve progress reporting when transcoding
- Date: Mon, 22 Jun 2009 12:39:28 -0400 (EDT)
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]