[rygel] core: Work around bgo#669166



commit dcfa7fc33165929a99b2583d0acd4e31e9ca6525
Author: Jens Georg <mail jensge org>
Date:   Sat Feb 11 19:44:49 2012 +0200

    core: Work around bgo#669166

 src/rygel/rygel-gst-utils.vala |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/rygel/rygel-gst-utils.vala b/src/rygel/rygel-gst-utils.vala
index edae12a..3d42b4d 100644
--- a/src/rygel/rygel-gst-utils.vala
+++ b/src/rygel/rygel-gst-utils.vala
@@ -65,6 +65,10 @@ internal abstract class Rygel.GstUtils {
     public static Element? create_source_for_uri (string uri) {
         dynamic Element src = Element.make_from_uri (URIType.SRC, uri, null);
         if (src != null) {
+            if (src.is_floating ()) {
+                src.ref_sink ();
+            }
+
             if (src.get_class ().find_property ("blocksize") != null) {
                 // The default is usually 4KiB which is not really big enough
                 // for most cases so we set this to 65KiB.



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