if (stat(path, &sb) == 0)
data_size = (guint64)sb.st_size;
- } else if (MMPLAYER_IS_HTTP_STREAMING(player))
+ } else if (MMPLAYER_IS_HTTP_STREAMING(player)) {
data_size = player->http_content_size;
+ }
__mm_player_streaming_buffering(player->streamer, buffering_msg, data_size, player->last_position, player->duration);
__mm_player_streaming_sync_property(player->streamer, player->pipeline->mainbin[MMPLAYER_M_AUTOPLUG].gst);
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));
/* update buffer percent */
gst_message_parse_buffering(buffering_msg, &buffer_percent);
- /* LOGD("buffering per %d%% -> %d%%, state 0x%X", streamer->buffering_percent, buffer_percent, streamer->buffering_state); */
+ /* LOGD("[%s] buffering per %d%% -> %d%%, state 0x%X", streamer->buffering_percent, buffer_percent, streamer->buffering_state); */
if (streamer->buffering_percent < buffer_percent) {
LOGD("[%s] buffering %d%%....",