summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAl Poole <netstar@gmail.com>2017-03-31 11:13:03 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2017-03-31 11:13:04 +0900
commit36ab489a6fbb546b26bdcbc5117bb8bf6adddc0c (patch)
treed0c4ef1d5ea3c110293cc93c1d27453c050b03f6
parent6fb17825768c623a1ec84608b8d0830393b1ce83 (diff)
Fixes latest crash w/rage
Summary: eina_file_virtualize is causing issues. memfile_set is better but see attached bt. What to do??? Reviewers: raster, cedric Subscribers: jpeg Differential Revision: https://phab.enlightenment.org/D4743
-rw-r--r--src/modules/emotion/gstreamer1/emotion_gstreamer.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/modules/emotion/gstreamer1/emotion_gstreamer.c b/src/modules/emotion/gstreamer1/emotion_gstreamer.c
index 9c863ca83a..4b14581d25 100644
--- a/src/modules/emotion/gstreamer1/emotion_gstreamer.c
+++ b/src/modules/emotion/gstreamer1/emotion_gstreamer.c
@@ -1037,9 +1037,7 @@ em_meta_artwork_get(void *video, Evas_Object *img, const char *path, Emotion_Art
1037 1037
1038 if (gst_buffer_map(gst_buffer_ref(buffer), &map, GST_MAP_READ)) 1038 if (gst_buffer_map(gst_buffer_ref(buffer), &map, GST_MAP_READ))
1039 { 1039 {
1040 Eina_File *f = eina_file_virtualize(path, map.data, map.size, EINA_FALSE); 1040 evas_object_image_memfile_set(img, map.data, map.size, NULL, NULL);
1041 evas_object_image_mmap_set(img, f, NULL);
1042 eina_file_close(f);
1043 evas_object_event_callback_add(img, EVAS_CALLBACK_DEL, _img_del_cb, buffer); 1041 evas_object_event_callback_add(img, EVAS_CALLBACK_DEL, _img_del_cb, buffer);
1044 } 1042 }
1045 gst_sample_unref(sample); 1043 gst_sample_unref(sample);