[rygel] renderer-gst: Update video duration



commit 0c32705656faca57ae80c40a260802401a8978c8
Author: Jens Georg <mail jensge org>
Date:   Tue Jun 10 17:41:01 2014 +0200

    renderer-gst: Update video duration
    
    On READY->PAUSED state change, check for duration availability and signalize
    it.
    
    Signed-off-by: Jens Georg <mail jensge org>
    
    https://bugzilla.gnome.org/show_bug.cgi?id=721824

 .../rygel-playbin-player.vala                      |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/librygel-renderer-gst/rygel-playbin-player.vala 
b/src/librygel-renderer-gst/rygel-playbin-player.vala
index 1c9e18e..875d00e 100644
--- a/src/librygel-renderer-gst/rygel-playbin-player.vala
+++ b/src/librygel-renderer-gst/rygel-playbin-player.vala
@@ -539,6 +539,10 @@ public class Rygel.Playbin.Player : GLib.Object, Rygel.MediaPlayer {
                             this.metadata = this.generate_basic_didl ();
                         }
                     }
+
+                    if (this.playbin.query_duration (Format.TIME, null)) {
+                        this.notify_property ("duration");
+                    }
                 }
 
                 if (pending == State.VOID_PENDING) {


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