if (mm_attrs_get_int_by_name(attrs, "profile_play_count", &count) != MM_ERROR_NONE) {
LOGE("can not get play count\n");
+ MMPLAYER_CMD_UNLOCK(player);
break;
}
if (!ret_value) {
LOGE("failed to set position to zero for rewind\n");
+ MMPLAYER_CMD_UNLOCK(player);
continue;
}
} else if (bRet == MM_ERROR_PLAYER_INVALID_STATE) {
if (!player->streamer) {
LOGW("player->streamer is NULL, so discarding the buffering percent update\n");
+ MMPLAYER_CMD_UNLOCK(player);
break;
}
if (util_is_sdp_file(path)) {
LOGD("uri is actually a file but it's sdp file. giving it to rtspsrc\n");
data->uri_type = MM_PLAYER_URI_TYPE_URL_RTSP;
- } else
+ } else {
data->uri_type = MM_PLAYER_URI_TYPE_FILE;
+ }
ret = MM_ERROR_NONE;
} else if (file_stat == MM_ERROR_PLAYER_PERMISSION_DENIED) {
data->uri_type = MM_PLAYER_URI_TYPE_NO_PERMISSION;