case OVGcreateImageMemory: {//imcount++;
PictureInfo *info = (PictureInfo*) command.data;
VGImage handle;
- Log::getInstance()->log("OSD", Log::DEBUG, "TVMedia OVGcreateImageMemory %d",imcount);
+ //Log::getInstance()->log("OSD", Log::DEBUG, "TVMedia OVGcreateImageMemory %d",imcount);
handle=vgCreateImage(VG_sABGR_8888,info->width,info->height,VG_IMAGE_QUALITY_BETTER);
vgImageSubData(handle,info->image,info->width*4,
VG_sABGR_8888,0,0,info->width,info->height);
// We have a pictures! send a message to ourself, to switch to gui thread
m->from=this;
m->to=Command::getInstance();
- m->parameter = handle;
+ m->parameter.handle = handle;
if (!static_image) {
m->message=Message::NEW_PICTURE;
m->tag = info->lindex;
VGImage handle;
handle=vgCreateImage(VG_sABGR_8888,info->width,info->height,VG_IMAGE_QUALITY_BETTER);
- Log::getInstance()->log("OSD", Log::DEBUG, "TVMedia OVGcreateEGLImage %d %d %x %d",info->width,info->height, handle,imcount);
+// Log::getInstance()->log("OSD", Log::DEBUG, "TVMedia OVGcreateEGLImage %d %d %x %d",info->width,info->height, handle,imcount);
info->handle = handle;
info->reference = eglCreateImageKHR(egl_display, egl_context, EGL_VG_PARENT_IMAGE_KHR, (EGLClientBuffer)handle, NULL);
int chars=0;
commands.resize(commands_size+strlen(text));
#ifndef WIN32
- num_bytes=mbrtowc(&tempo, run, length, &state);
mbstate_t state;
wchar_t tempo;
size_t num_bytes = 1;
memset((void*)&state,0,sizeof(state));
+ num_bytes=mbrtowc(&tempo, run, length, &state);
while (num_bytes!=((size_t) -1) && num_bytes!=((size_t) -2) && length>0)
{