change the error type at the player_set_media_stream_info() 95/45795/2 submit/tizen/20150812.014234
authorHyongtaek Lim <hyongtaek.lim@samsung.com>
Tue, 11 Aug 2015 09:36:48 +0000 (18:36 +0900)
committerHyongtaek Lim <hyongtaek.lim@samsung.com>
Tue, 11 Aug 2015 10:54:11 +0000 (03:54 -0700)
Signed-off-by: Hyongtaek Lim <hyongtaek.lim@samsung.com>
Change-Id: If019415dfd0e6f9a153ddd246b0a5211bad651f3

client/src/player2.c

index 3f8960e..1376134 100644 (file)
@@ -2900,7 +2900,7 @@ int player_set_media_stream_info(player_h player,
                player_stream_type_e type, media_format_h format)
 {
        PLAYER_INSTANCE_CHECK(player);
-       PLAYER_NULL_ARG_CHECK(format);
+       g_return_val_if_fail(format, PLAYER_ERROR_INVALID_OPERATION);
        int ret = PLAYER_ERROR_NONE;
        player_cli_s *pc = (player_cli_s *) player;
        mm_player_api_e api = MM_PLAYER_API_SET_MEDIA_STREAM_INFO;