all: Port to new libsoup API
authorJens Georg <jensg@openismus.com>
Sat, 2 Nov 2013 10:16:38 +0000 (11:16 +0100)
committerJens Georg <jensg@openismus.com>
Sun, 3 Nov 2013 12:02:23 +0000 (13:02 +0100)
configure.ac
src/librygel-renderer/rygel-av-transport.vala
src/librygel-server/rygel-import-resource.vala
src/plugins/mediathek/rygel-mediathek-root-container.vala

index 3de0fe7..8e8110b 100644 (file)
@@ -44,7 +44,7 @@ GSTPBU_REQUIRED=1.0
 GIO_REQUIRED=2.26
 GEE_REQUIRED=0.8.0
 UUID_REQUIRED=1.41.3
-LIBSOUP_REQUIRED=2.34.0
+LIBSOUP_REQUIRED=2.42.0
 GTK_REQUIRED=3.0
 
 dnl Additional requirements for media-export plugin
index ee5785f..7d38e9a 100644 (file)
@@ -152,12 +152,11 @@ internal class Rygel.AVTransport : Service {
                 !proxy.has_prefix ("https://")) {
                 proxy = "http://" + proxy;
             }
-            this.session = new SessionAsync.with_options (Soup.SESSION_PROXY_URI,
-                                                          new Soup.URI (proxy));
+            this.session = new Session.with_options (Soup.SESSION_PROXY_URI,
+                                                     new Soup.URI (proxy));
         } else {
-            this.session = new SessionAsync ();
+            this.session = new Session ();
         }
-        this.session.add_feature_by_type (typeof (Soup.ProxyResolverDefault));
         this.protocol_info = plugin.get_protocol_info ();
     }
 
index 0b35fd2..2ecdbc2 100644 (file)
@@ -89,7 +89,7 @@ internal class Rygel.ImportResource : GLib.Object, Rygel.StateMachine {
         this.bytes_total = 0;
 
         this.status = TransferStatus.IN_PROGRESS;
-        this.session = new SessionAsync ();
+        this.session = new Session ();
 
         content_dir.cancellable.cancelled.connect (() => {
             this.cancellable.cancel ();
index 1534565..f4a2183 100644 (file)
@@ -25,7 +25,7 @@ using Soup;
 
 public class Rygel.Mediathek.RootContainer : Rygel.TrackableContainer,
                                              Rygel.SimpleContainer {
-    private SessionAsync session;
+    private Session session;
     private static RootContainer instance;
     private static int DEFAULT_UPDATE_INTERVAL = 1800;
 
@@ -38,13 +38,13 @@ public class Rygel.Mediathek.RootContainer : Rygel.TrackableContainer,
         return instance;
     }
 
-    public static SessionAsync get_default_session () {
+    public static Session get_default_session () {
         return get_instance ().session;
     }
 
     private RootContainer () {
         base.root ("ZDF Mediathek");
-        this.session = new Soup.SessionAsync ();
+        this.session = new Soup.Session ();
     }
 
     private async void init () {