Enlightenment CVS committal Author : doursse Project : e17 Module : libs/emotion
Dir : e17/libs/emotion/src/lib Modified Files: emotion_smart.c Log Message: * reorganize the way the gstreamer pipeline is built. Fix some usages of emotion_object_file_set() * move the "frame_decode" evas event to _emotion_frame_new() a,d replace it in _emotion_video_pos_update() by "position_update" * fix a mem leak in the gstreamer backend and in the smart object =================================================================== RCS file: /cvs/e/e17/libs/emotion/src/lib/emotion_smart.c,v retrieving revision 1.40 retrieving revision 1.41 diff -u -3 -r1.40 -r1.41 --- emotion_smart.c 14 May 2008 21:39:33 -0000 1.40 +++ emotion_smart.c 15 May 2008 16:52:04 -0000 1.41 @@ -235,6 +235,7 @@ { int w, h; + if (sd->file) free(sd->file); sd->file = strdup(file); if (sd->module) { @@ -256,6 +257,8 @@ sd->module->file_close(sd->video); evas_object_image_size_set(sd->obj, 0, 0); } + if (sd->file) free(sd->file); + sd->file = NULL; } } @@ -838,6 +841,7 @@ E_SMART_OBJ_GET(sd, obj, E_OBJ_NAME); // printf("pix get set 1 %p\n", sd->obj); evas_object_image_pixels_dirty_set(sd->obj, 1); + evas_object_smart_callback_call(obj, "frame_decode", NULL); } EAPI void @@ -851,7 +855,7 @@ if (len != sd->len) nlen = 1; sd->pos = pos; sd->len = len; - if (npos) evas_object_smart_callback_call(obj, "frame_decode", NULL); + if (npos) evas_object_smart_callback_call(obj, "position_update", NULL); if (nlen) evas_object_smart_callback_call(obj, "length_change", NULL); } ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs