summaryrefslogtreecommitdiff
path: root/src/mm_player_priv.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mm_player_priv.c')
-rw-r--r--src/mm_player_priv.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/mm_player_priv.c b/src/mm_player_priv.c
index 0a8b178..1464b82 100644
--- a/src/mm_player_priv.c
+++ b/src/mm_player_priv.c
@@ -9946,23 +9946,28 @@ int _mmplayer_set_codec_type(MMHandleType hplayer, MMPlayerStreamType stream_typ
switch (stream_type) {
case MM_PLAYER_STREAM_TYPE_AUDIO:
+ /* to support audio codec selection, codec info have to be added in ini file as below.
+ audio codec element hw = xxxx
+ audio codec element sw = avdec */
if (((codec_type == MM_PLAYER_CODEC_TYPE_HW) &&
(!strcmp(player->ini.audiocodec_element_hw, ""))) ||
((codec_type == MM_PLAYER_CODEC_TYPE_SW) &&
(!strcmp(player->ini.audiocodec_element_sw[IDX_FIRST_SW_CODEC], "")))) {
- LOGE("There is no a codec for codec_type %d", codec_type);
+ LOGE("There is no audio codec info for codec_type %d", codec_type);
return MM_ERROR_PLAYER_NO_OP;
}
break;
case MM_PLAYER_STREAM_TYPE_VIDEO:
+ /* to support video codec selection, codec info have to be added in ini file as below.
+ video codec element hw = omx
+ video codec element sw = avdec */
if (((codec_type == MM_PLAYER_CODEC_TYPE_HW) &&
(!strcmp(player->ini.videocodec_element_hw, ""))) ||
((codec_type == MM_PLAYER_CODEC_TYPE_SW) &&
(!strcmp(player->ini.videocodec_element_sw[IDX_FIRST_SW_CODEC], "")))) {
- LOGE("There is no v codec for codec_type %d", codec_type);
+ LOGE("There is no video codec info for codec_type %d", codec_type);
return MM_ERROR_PLAYER_NO_OP;
}
-
break;
default:
LOGE("Invalid stream type %s", MMPLAYER_STREAM_TYPE_GET_NAME(stream_type));