[rygel/rygel-0-24] media-export: Work-around bgo#739915
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel/rygel-0-24] media-export: Work-around bgo#739915
- Date: Mon, 10 Nov 2014 19:58:02 +0000 (UTC)
commit b307ee367b4e388e1b197bcb0d7d82cd0de4f697
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>
.../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 ae71f40..cbd0f35 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);
+
+ // Work-around bgo#739915
+ weak uint8[] data = map_info.data;
+ data.length = (int) map_info.size;
+
+ store.add (item, file, data);
sample.get_buffer ().unmap (map_info);
break;
default:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]