return PLAYER_ERROR_INVALID_STATE;
}
+ if (handle->state < PLAYER_STATE_READY) {
+ ret = mm_player_get_attribute(handle->mm_handle, NULL,
+ MM_PLAYER_PREBUFFER_MS, prebuffer_ms, MM_PLAYER_REBUFFER_MS, rebuffer_ms, (char *)NULL);
+ if (ret != MM_ERROR_NONE)
+ return __player_convert_error_code(ret, (char *)__FUNCTION__);
+
+ LOGD("pre: %d ms, re: %d ms", *prebuffer_ms, *rebuffer_ms);
+ return PLAYER_ERROR_NONE;
+ }
+
ret = mm_player_get_streaming_buffering_time(handle->mm_handle, prebuffer_ms, rebuffer_ms);
if (ret != MM_ERROR_NONE)
return __player_convert_error_code(ret, (char *)__FUNCTION__);