muse_player = (muse_player_handle_s *)muse_core_ipc_get_handle(module);
player_msg_get_string(subtitle_path, muse_core_client_get_msg(module));
- if ((ret = _check_supportable(module, subtitle_path)) == PLAYER_ERROR_NONE)
- ret = legacy_player_set_subtitle_path(muse_player->player_handle, subtitle_path);
+ if (strncmp(subtitle_path, "", 1)) {
+ if ((ret = _check_supportable(module, subtitle_path)) == PLAYER_ERROR_NONE)
+ ret = legacy_player_set_subtitle_path(muse_player->player_handle, subtitle_path);
+ } else {
+ ret = legacy_player_set_subtitle_path(muse_player->player_handle, NULL);
+ }
player_msg_return(api, ret, module);