ret = player_set_buffering_cb(player, player_buffer_cb, NULL);
// if wifi isn't connected or internet modules don't exist, this error will be returned.
// and it is wrongly detected as a fail. so we will skip the test on these cases.
- if(ret==PLAYER_ERROR_FEATURE_NOT_SUPPORTED_ON_DEVICE) {
+ if (ret == PLAYER_ERROR_FEATURE_NOT_SUPPORTED_ON_DEVICE) {
PRINT_UTC_LOG("[Line : %d][%s] check network status\\n", __LINE__, API_NAMESPACE);
return 0;
}
assert_eq(ret, PLAYER_ERROR_NONE);
ret = player_prepare(player);
- if (PLAYER_ERROR_NONE != ret)
- PRINT_UTC_LOG("[Line : %d][%s] player isn't prepared\\n", __LINE__, API_NAMESPACE);
+ assert_eq(ret, PLAYER_ERROR_NONE);
ret = player_start(player);
- if (PLAYER_ERROR_NONE != ret)
- PRINT_UTC_LOG("[Line : %d][%s] player isn't started\\n", __LINE__, API_NAMESPACE);
+ assert_eq(ret, PLAYER_ERROR_NONE);
for(repeat=0; repeat<11; repeat++) {
wait_for_async();