renderer-gst: Deprecate element wrapping
authorJens Georg <mail@jensge.org>
Sun, 9 Feb 2014 11:54:37 +0000 (12:54 +0100)
committerJens Georg <mail@jensge.org>
Sun, 9 Feb 2014 11:58:24 +0000 (12:58 +0100)
The function causes leaks in the error case and secondly, wrapping an existing
pipeline is not as helpful as I thought it would be.

Signed-off-by: Jens Georg <mail@jensge.org>
https://bugzilla.gnome.org/show_bug.cgi?id=722021

src/librygel-renderer-gst/rygel-playbin-player.vala

index 3582013..72d2baa 100644 (file)
@@ -342,8 +342,8 @@ public class Rygel.Playbin.Player : GLib.Object, Rygel.MediaPlayer {
         this.setup_playbin ();
     }
 
+    [Deprecated (since="0.21.5")]
     public Player.wrap (Gst.Element playbin) {
-
         return_if_fail (playbin != null);
         return_if_fail (playbin.get_type ().name() == "GstPlayBin");