[UTC][Player][Non-ACR][add assert in case of err return to avoid tct timeout]
authorEunhae Choi <eunhae1.choi@samsung.com>
Wed, 13 Sep 2017 06:56:52 +0000 (15:56 +0900)
committereunhae choi <eunhae1.choi@samsung.com>
Fri, 17 Nov 2017 04:40:07 +0000 (04:40 +0000)
Change-Id: Iaf53c744cd0cc617b485ec55384f72425de79d14
(cherry picked from commit b3177a221faf4f9ecd09e07cf0a7035a9f3dd726)

src/utc/player/utc-media-player-callback.c [changed mode: 0755->0644]

old mode 100755 (executable)
new mode 100644 (file)
index 1ec3531..6dd5dc0
@@ -168,19 +168,17 @@ int utc_media_player_set_buffering_cb_p(void)
     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();