[rygel] plugins: Adapt to new GStreamer VAPIs



commit 1e219853a5211f9ddea49d0e779d6f520ea6b4c6
Author: Jens Georg <mail jensge org>
Date:   Tue Aug 30 11:08:58 2011 +0200

    plugins: Adapt to new GStreamer VAPIs

 .../media-export/rygel-media-export-item.vala      |    2 +-
 src/plugins/mpris/rygel-mpris-player.vala          |    2 +-
 src/plugins/playbin/rygel-playbin-player.vala      |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/plugins/media-export/rygel-media-export-item.vala b/src/plugins/media-export/rygel-media-export-item.vala
index 944a8c2..9e9ff2f 100644
--- a/src/plugins/media-export/rygel-media-export-item.vala
+++ b/src/plugins/media-export/rygel-media-export-item.vala
@@ -111,7 +111,7 @@ namespace Rygel.MediaExport.ItemFactory {
                                          DLNAInformation      dlna_info,
                                          DiscovererAudioInfo? audio_info) {
         if (dlna_info.info.get_duration () > 0) {
-            item.duration = dlna_info.info.get_duration () / Gst.SECOND;
+            item.duration = (long) (dlna_info.info.get_duration () / Gst.SECOND);
         } else {
             item.duration = -1;
         }
diff --git a/src/plugins/mpris/rygel-mpris-player.vala b/src/plugins/mpris/rygel-mpris-player.vala
index abbe7be..3e7e1d7 100644
--- a/src/plugins/mpris/rygel-mpris-player.vala
+++ b/src/plugins/mpris/rygel-mpris-player.vala
@@ -124,7 +124,7 @@ public class Rygel.MPRIS.Player : GLib.Object, Rygel.MediaPlayer {
         var ret = false;
 
         try {
-            this.actual_player.seek (time / 1000);
+            this.actual_player.seek ((int64) (time / 1000));
             ret = true;
         } catch (Error error) {}
 
diff --git a/src/plugins/playbin/rygel-playbin-player.vala b/src/plugins/playbin/rygel-playbin-player.vala
index 014f52d..2173e0c 100644
--- a/src/plugins/playbin/rygel-playbin-player.vala
+++ b/src/plugins/playbin/rygel-playbin-player.vala
@@ -152,7 +152,7 @@ public class Rygel.Playbin.Player : GLib.Object, Rygel.MediaPlayer {
                                   Format.TIME,
                                   SeekFlags.FLUSH,
                                   Gst.SeekType.SET,
-                                  time,
+                                  (int64) time,
                                   Gst.SeekType.NONE,
                                   -1);
     }



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