MMPLAYER_FENTER();
- mm_attrs_get_int_by_name(player->attrs, "display_surface_type", &curr_type);
-
- if (curr_type != MM_DISPLAY_SURFACE_OVERLAY && curr_type != MM_DISPLAY_SURFACE_OVERLAY_SYNC_UI) {
- LOGE("current type(%d) is wrong", curr_type);
- return MM_ERROR_PLAYER_INTERNAL;
- }
-
if (!player || !player->pipeline || !player->pipeline->mainbin || !player->pipeline->videobin ||
!player->pipeline->videobin[MMPLAYER_V_BIN].gst ||
!player->pipeline->videobin[MMPLAYER_V_SINK].gst) {
return MM_ERROR_PLAYER_NOT_INITIALIZED;
}
+ mm_attrs_get_int_by_name(player->attrs, "display_surface_type", &curr_type);
+
+ if (curr_type != MM_DISPLAY_SURFACE_OVERLAY && curr_type != MM_DISPLAY_SURFACE_OVERLAY_SYNC_UI) {
+ LOGE("current type(%d) is wrong", curr_type);
+ return MM_ERROR_PLAYER_INTERNAL;
+ }
+
if (strcmp(player->ini.videosink_element_overlay, "tizenwlsink")) {
LOGE("invalid videosink [%s]", player->ini.videosink_element_overlay);
return MM_ERROR_PLAYER_INTERNAL;