#define SWAP(a, b) ({int t; t = a; a = b; b = t; })
#define INIT_IDX -1
#define SIGNAL_TIMEOUT 1
-#if 0
+#if 1
#define MMER_FENTER(); LOGD("<ENTER>");
#define MMER_FLEAVE(); LOGD("<LEAVE>");
#else
LOGE("there is no information for evas object size");
return MM_ERROR_EVASRENDER_INTERNAL;
}
+ if (!evas_info->w || !evas_info->h) {
+ LOGE("there is no video size from mm_evas_renderer_write() which is callback_func of player or camera");
+ return MM_ERROR_EVASRENDER_INTERNAL;
+ }
_mm_evas_renderer_update_geometry(evas_info);
if (!evas_info->result.w || !evas_info->result.h) {
} else {
g_mutex_lock(&ptr->evas_lock);
ret = _mm_evas_pipe_write(ptr, UPDATE_DESTROY);
- if ( ret == MM_ERROR_NONE) {
+ if (ret == MM_ERROR_NONE) {
LOGD("Wait for g_cond_signal...");
g_cond_wait(&ptr->evas_cond[COND_DESTROY], &ptr->evas_lock);
LOGD("get g_cond_signal");
LOGD("swapped width %d, height %d", video_width, video_height);
#endif
}
-
+ LOGD("eo size (x:%d,y:%d,w:%d,h:%d)", evas_info->eo_size.x, evas_info->eo_size.y, evas_info->eo_size.w, evas_info->eo_size.h);
+ LOGD("video size (w:%d,h:%d)", video_width, video_height);
switch (evas_info->display_geometry_method) {
case DISP_GEO_METHOD_LETTER_BOX:
/* set black padding for letter box mode */
/* flush all packet */
g_mutex_lock(&evas_info->evas_lock);
ret = _mm_evas_pipe_write(evas_info, UPDATE_FLUSH_BUFFER);
- if ( ret == MM_ERROR_NONE) {
+ if (ret == MM_ERROR_NONE) {
if (!g_cond_wait_until(&evas_info->evas_cond[COND_RETRIEVE], &evas_info->evas_lock, end_time)) {
//timeout
LOGW("timeout: main thread is busy, App need to handle main thread well.");