[rygel] engine-gst: Fix obscure test failure



commit 7d6ddaa1b0af66fd7ef62e61dded046f00dafddb
Author: Jens Georg <jensg openismus com>
Date:   Fri Apr 26 22:49:07 2013 +0200

    engine-gst: Fix obscure test failure
    
    Work-around https://bugzilla.gnome.org/show_bug.cgi?id=698997

 src/media-engines/gstreamer/rygel-gst-sink.vala |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/media-engines/gstreamer/rygel-gst-sink.vala b/src/media-engines/gstreamer/rygel-gst-sink.vala
index 132181e..acdaefe 100644
--- a/src/media-engines/gstreamer/rygel-gst-sink.vala
+++ b/src/media-engines/gstreamer/rygel-gst-sink.vala
@@ -132,7 +132,9 @@ internal class Rygel.GstSink : Sink {
 
         buffer.map (out info, MapFlags.READ);
 
-        this.source.data_available (info.data[0:to_send]);
+        unowned uint8[] tmp = info.data[0:to_send];
+
+        this.source.data_available (tmp);
         this.bytes_sent += to_send;
         buffer.unmap (info);
 


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