[rygel] media-export: Work-around bgo#739915



commit 903444992eb4c9dec0a772b033cf8a89103dbd59
Author: Jens Georg <mail jensge org>
Date:   Mon Nov 10 20:07:36 2014 +0100

    media-export: Work-around bgo#739915
    
    Signed-off-by: Jens Georg <mail jensge org>
    
    Conflicts:
        src/plugins/media-export/rygel-media-export-item-factory.vala

 .../rygel-media-export-item-factory.vala           |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/src/plugins/media-export/rygel-media-export-item-factory.vala 
b/src/plugins/media-export/rygel-media-export-item-factory.vala
index d8ecd58..8434fc9 100644
--- a/src/plugins/media-export/rygel-media-export-item-factory.vala
+++ b/src/plugins/media-export/rygel-media-export-item-factory.vala
@@ -294,7 +294,12 @@ namespace Rygel.MediaExport.ItemFactory {
             case Tag.ImageType.FRONT_COVER:
                 Gst.MapInfo map_info;
                 sample.get_buffer ().map (out map_info, Gst.MapFlags.READ);
-                store.add (item, file, map_info.data, structure.get_name ());
+
+                // Work-around bgo#739915
+                weak uint8[] data = map_info.data;
+                data.length = (int) map_info.size;
+
+                store.add (item, file, data, structure.get_name ());
                 sample.get_buffer ().unmap (map_info);
                 break;
             default:


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