return;
}
-static player_tsurf_info_t* __player_get_tsurf_from_list(callback_cb_info_s * cb_info, int *key, tbm_surface_info_s sinfo)
+static player_tsurf_info_t* __player_get_tsurf_from_list(callback_cb_info_s * cb_info, int *key, int height, int width)
{
GList *l = NULL;
LOGD("found tsurf_data of tbm_key %d", key[0]);
/* need to check tsuf info to support DRC */
- if ((tbm_surface_get_height(tmp->tsurf) != sinfo.height) ||
- (tbm_surface_get_width(tmp->tsurf) != sinfo.width)) {
+ if ((tbm_surface_get_height(tmp->tsurf) != height) ||
+ (tbm_surface_get_width(tmp->tsurf) != width)) {
cb_info->tsurf_list = g_list_remove(cb_info->tsurf_list, tmp);
LOGW("tsurf info is changed. need to create new tsurf.");
goto ERROR;
}
- tsurf_data = __player_get_tsurf_from_list(cb_info, key, sinfo);
+ tsurf_data = __player_get_tsurf_from_list(cb_info, key, (int)sinfo.height, (int)sinfo.width);
if (!tsurf_data) {
for (i = 0; i < MUSE_NUM_FD; i++) {
if (recv_data->tfd[i] <= INVALID_DEFAULT_VALUE)
static void _player_get_progressive_download_status()
{
- int bRet;
- unsigned long curr, total;
+ int bRet = 0;
+ unsigned long curr = 0, total = 0;
bRet = player_get_progressive_download_status(g_player[0], &curr, &total);
g_print("player_get_progressive_download_status return[%d] ==> [Player_Test] progressive download status : %lu/%lu\n", bRet, curr, total);
}
if ((ret = sound_manager_get_device_list(SOUND_DEVICE_ALL_MASK, &device_list))) {
g_print("failed to sound_manager_get_device_list(), ret(0x%x)\n", ret);
- return;
+ goto END;
}
while (!(ret = sound_manager_get_next_device(device_list, &device))) {
if ((ret = sound_manager_get_device_type(device, &device_type))) {
static void set_audio_eq(int value)
{
bool available = FALSE;
- int index, min, max;
+ int index, min = 0, max = 0;
if (value) {
if (player_audio_effect_equalizer_is_available(g_player[0], &available) != PLAYER_ERROR_NONE)