[0.2.55] add new error for each stream type 74/132174/1 accepted/tizen/unified/20170608.072428 submit/tizen/20170608.033315
authorEunhae Choi <eunhae1.choi@samsung.com>
Thu, 1 Jun 2017 10:06:10 +0000 (19:06 +0900)
committerEunhae Choi <eunhae1.choi@samsung.com>
Thu, 1 Jun 2017 10:06:10 +0000 (19:06 +0900)
Change-Id: I00777844c0e6fc2f709b6abc466c49807a3990e6

legacy/include/legacy_player.h
legacy/src/legacy_player.c
packaging/mmsvc-player.spec

index d29e81a34e2af796eae9e12437f50f6f432410ac..4d0862d3684d8daddc9baf242a4c7848138c905f 100644 (file)
@@ -85,6 +85,9 @@ typedef enum {
        PLAYER_ERROR_PERMISSION_DENIED     = TIZEN_ERROR_PERMISSION_DENIED,        /**< Permission denied */
        PLAYER_ERROR_SERVICE_DISCONNECTED  = PLAYER_ERROR_CLASS | 0x0d,            /**< Socket connection lost (Since 3.0) */
        PLAYER_ERROR_BUFFER_SPACE          = TIZEN_ERROR_BUFFER_SPACE,             /**< No buffer space available (Since 3.0)*/
+       PLAYER_ERROR_NOT_SUPPORTED_AUDIO_CODEC = PLAYER_ERROR_CLASS | 0x0e,        /**< Not supported audio codec but video can be played (Since 4.0) */
+       PLAYER_ERROR_NOT_SUPPORTED_VIDEO_CODEC = PLAYER_ERROR_CLASS | 0x0f,        /**< Not supported video codec but audio can be played (Since 4.0) */
+       PLAYER_ERROR_NOT_SUPPORTED_SUBTITLE = PLAYER_ERROR_CLASS | 0x10,           /**< Not supported subtitle format (Since 4.0) */
 } player_error_e;
 
 /**
index ff5345cc51a3ae3f4d4d465d6b0d6e9fc8edc91b..03fae27a51cd14852b435056c0d04a472a0d6214 100644 (file)
@@ -92,11 +92,21 @@ int __player_convert_error_code(int code, char *func_name)
        char *msg = "PLAYER_ERROR_INVALID_OPERATION";
        switch (code) {
        case MM_ERROR_NONE:
-       case MM_ERROR_PLAYER_AUDIO_CODEC_NOT_FOUND:
-       case MM_ERROR_PLAYER_VIDEO_CODEC_NOT_FOUND:
                ret = PLAYER_ERROR_NONE;
                msg = "PLAYER_ERROR_NONE";
                break;
+       case MM_ERROR_PLAYER_AUDIO_CODEC_NOT_FOUND:
+               ret = PLAYER_ERROR_NOT_SUPPORTED_AUDIO_CODEC;
+               msg = "PLAYER_ERROR_NOT_SUPPORTED_AUDIO_CODEC";
+               break;
+       case MM_ERROR_PLAYER_VIDEO_CODEC_NOT_FOUND:
+               ret = PLAYER_ERROR_NOT_SUPPORTED_VIDEO_CODEC;
+               msg = "PLAYER_ERROR_NOT_SUPPORTED_VIDEO_CODEC";
+               break;
+       case MM_ERROR_PLAYER_NOT_SUPPORTED_SUBTITLE:
+               ret = PLAYER_ERROR_NOT_SUPPORTED_SUBTITLE;
+               msg = "PLAYER_ERROR_NOT_SUPPORTED_SUBTITLE";
+               break;
        case MM_ERROR_INVALID_ARGUMENT:
                ret = PLAYER_ERROR_INVALID_PARAMETER;
                msg = "PLAYER_ERROR_INVALID_PARAMETER";
index 828e82b7a2db5a0f8c748f8930d2231485c1fddf..73729be8bb9c652fbbb2e1de317a3b06495459a6 100644 (file)
@@ -1,6 +1,6 @@
 Name:       mmsvc-player
 Summary:    A Media Player module for muse server
-Version:    0.2.54
+Version:    0.2.55
 Release:    0
 Group:      Multimedia/Libraries
 License:    Apache-2.0