free(path);
PROFILE_IN("bindtextdomain");
bindtextdomain(DOMAIN_NAME, locale_path);
-
PROFILE_OUT("bindtextdomain");
+#ifdef MP_SOUND_PLAYER
+ if (_mp_is_current_focus_available(ad) != 0) {
+ ERROR_TRACE("Some other application has the focus currently... Returning...");
+ char *message = STR_MP_UNABLE_TO_PLAY_DURING_CALL;
+ if (message) {
+ int ret = notification_status_message_post(dgettext("music-player", message));
+ if (ret != 0) {
+ ERROR_TRACE("notification_status_message_post()... [0x%x]", ret);
+ } else {
+ DEBUG_TRACE("message: [%s]", message);
+ }
+ }
+ return false;
+ }
+#endif
+
PROFILE_IN("mp_create_win");
ad->win_main = mp_create_win("music-player");
mp_retv_if(ad->win_main == NULL, EINA_FALSE);