return TRUE;
}
-
+#ifdef NO_USE_CODE
static void reset_display()
{
int i = 0;
}
}
}
-
+#endif
static void input_filename(char *filename)
{
int len = strlen(filename);
return;
}
- if (surface_type == g_current_surface_type) {
- g_print("same with the previous surface type(%d)\n", g_current_surface_type);
- return;
- } else {
- player_state_e player_state = PLAYER_STATE_NONE;
- ret = player_get_state(g_player[0], &player_state);
- if (ret)
- g_print("failed to player_get_state(), ret(0x%x)\n", ret);
-
- reset_display();
-
- if (surface_type == PLAYER_DISPLAY_TYPE_OVERLAY) {
-#ifdef _ACTIVATE_EOM_
- hdmi_output_id = eom_get_output_id("HDMI");
- if (hdmi_output_id == 0)
- g_print("[eom] error : HDMI output id is NULL.\n");
-
- eom_get_output_mode(hdmi_output_id, &output_mode);
- if (output_mode == EOM_OUTPUT_MODE_NONE) {
+ player_state_e player_state = PLAYER_STATE_NONE;
+ ret = player_get_state(g_player[0], &player_state);
+ if (ret)
+ g_print("failed to player_get_state(), ret(0x%x)\n", ret);
+#ifdef NO_USE_CODE
+ reset_display();
#endif
- if (!g_win_id) {
- g_win_id = create_win(PACKAGE);
- if (g_win_id == NULL)
- return;
- g_print("create win_id %p\n", g_win_id);
- create_render_rect_and_bg(g_win_id);
- elm_win_activate(g_win_id);
- evas_object_show(g_win_id);
- g_win_id = selected_win_id;
- }
+ if (surface_type == PLAYER_DISPLAY_TYPE_OVERLAY) {
#ifdef _ACTIVATE_EOM_
- } else {
- /* for external */
- }
+ hdmi_output_id = eom_get_output_id("HDMI");
+ if (hdmi_output_id == 0)
+ g_print("[eom] error : HDMI output id is NULL.\n");
+
+ eom_get_output_mode(hdmi_output_id, &output_mode);
+ if (output_mode == EOM_OUTPUT_MODE_NONE) {
#endif
- ret = player_set_display(g_player[0], surface_type, GET_DISPLAY(selected_win_id));
- } else {
if (!g_win_id) {
g_win_id = create_win(PACKAGE);
if (g_win_id == NULL)
create_render_rect_and_bg(g_win_id);
elm_win_activate(g_win_id);
evas_object_show(g_win_id);
+ g_win_id = selected_win_id;
}
+#ifdef _ACTIVATE_EOM_
+ } else {
+ /* for external */
+ }
+#endif
+ ret = player_set_display(g_player[0], surface_type, GET_DISPLAY(selected_win_id));
+ } else {
+ if (!g_win_id) {
+ g_win_id = create_win(PACKAGE);
+ if (g_win_id == NULL)
+ return;
+ g_print("create win_id %p\n", g_win_id);
+ create_render_rect_and_bg(g_win_id);
+ elm_win_activate(g_win_id);
+ evas_object_show(g_win_id);
+ }
+ if (surface_type == PLAYER_DISPLAY_TYPE_EVAS) {
+ /* surface type is PLAYER_DISPLAY_TYPE_NONE */
int i = 0;
for (i = 0; i < g_handle_num; i++) {
/* Create evas image object for EVAS surface */
ret = player_set_display(g_player[i], surface_type, g_eo[i]);
}
+ } else {
+ g_print("surface type is PLAYER_DISPLAY_TYPE_NONE\n");
}
- if (ret) {
- g_print("failed to set display, surface_type(%d)\n", surface_type);
- return;
- }
- g_current_surface_type = surface_type;
}
+ if (ret) {
+ g_print("failed to set display, surface_type(%d)\n", surface_type);
+ return;
+ }
+ g_current_surface_type = surface_type;
return;
}