}
/* create player lock and cond */
- g_mutex_init(&new_player->cmd_lock);
+ MMPLAYER_CMD_LOCK_INIT(new_player);
g_mutex_init(&new_player->reconfigure_lock);
g_cond_init(&new_player->reconfigure_cond);
if (new_player) {
_mmplayer_destroy((MMHandleType)new_player);
- g_mutex_clear(&new_player->cmd_lock);
+ MMPLAYER_CMD_LOCK_DEINIT(new_player);
g_mutex_clear(&new_player->reconfigure_lock);
g_cond_clear(&new_player->reconfigure_cond);
MMPLAYER_FREEIF(new_player);
MMPLAYER_CMD_UNLOCK(player);
- g_mutex_clear(&((mmplayer_t *)player)->cmd_lock);
+ MMPLAYER_CMD_LOCK(player);
+ MMPLAYER_CMD_UNLOCK(player);
+
+ MMPLAYER_CMD_LOCK_DEINIT(player);
g_mutex_clear(&((mmplayer_t *)player)->reconfigure_lock);
g_cond_clear(&((mmplayer_t *)player)->reconfigure_cond);
MMPLAYER_CMD_LOCK(player);
- result = _mmplayer_adjust_subtitle_postion(player, pos);
+ result = _mmplayer_adjust_subtitle_position(player, pos);
MMPLAYER_CMD_UNLOCK(player);