[v0.2.33] fix bug about setting subtitle_path to NULL 34/95034/2
authorNAMJEONGYOON <just.nam@samsung.com>
Wed, 2 Nov 2016 07:05:06 +0000 (16:05 +0900)
committerNAMJEONGYOON <just.nam@samsung.com>
Wed, 2 Nov 2016 07:13:01 +0000 (16:13 +0900)
Change-Id: I1c70735f434ab0338d4a84559719468a253d0d3d

muse/src/muse_player.c

index c024191..bf709df 100644 (file)
@@ -2142,8 +2142,12 @@ int player_disp_set_subtitle_path(muse_module_h module)
        muse_player = (muse_player_handle_s *)muse_core_ipc_get_handle(module);
        player_msg_get_string(subtitle_path, muse_core_client_get_msg(module));
 
-       if ((ret = _check_supportable(module, subtitle_path)) == PLAYER_ERROR_NONE)
-               ret = legacy_player_set_subtitle_path(muse_player->player_handle, subtitle_path);
+       if (strncmp(subtitle_path, "", 1)) {
+               if ((ret = _check_supportable(module, subtitle_path)) == PLAYER_ERROR_NONE)
+                       ret = legacy_player_set_subtitle_path(muse_player->player_handle, subtitle_path);
+       } else {
+               ret = legacy_player_set_subtitle_path(muse_player->player_handle, NULL);
+       }
 
        player_msg_return(api, ret, module);