* %http://tizen.org/feature/opengles.version.2_0\n
* @param[in] player The handle to the media player
* @param[in] yaw The angle value around vertical axis. Valid values are in
- * range [-PI, PI].
+ * range [-PI, PI]. Default value is 0.
* @param[in] pitch The angle value around lateral axis. Valid values are in
- * range [-PI/2, PI/2].
+ * range [-PI/2, PI/2]. Default value is 0.
* @return @c 0 on success,
* otherwise a negative error value
* @retval #PLAYER_ERROR_NONE Successful
file_path = g_filename_from_uri(valid_path, NULL, &err);
if (!file_path || (err != NULL)) {
- LOGE("Invalid URI '%s', err: %s", uri,
+ SECURE_LOGE("Invalid URI '%s', err: %s", uri,
(err != NULL) ? err->message : "unknown error");
if (err) g_error_free(err);
strncpy(valid_path, (file_path) ? (file_path) : (uri), MAX_URL_LEN-1);
} else {
/* need to use converted path. */
- LOGD("Converted path : %s -> %s", uri, valid_path);
+ SECURE_LOGD("Converted path : %s -> %s", uri, valid_path);
}
g_free(file_path);
if (_player_get_valid_path(uri, path) != PLAYER_ERROR_NONE)
return PLAYER_ERROR_INVALID_PARAMETER;
- LOGD("new path : %s", path);
+ SECURE_LOGD("new path : %s", path);
player_msg_send1(api, pc, ret_buf, ret, STRING, path);
pc->push_media_stream = FALSE;
media_format_h format;
bool is_video;
bool is_audio;
+ bool is_eos;
LOGD("ENTER");
media_packet_is_video(packet, &is_video);
media_packet_is_audio(packet, &is_audio);
+ media_packet_is_end_of_stream(packet, &is_eos);
if (is_video)
media_format_get_video_info(format, &push_media.mimetype, &push_media.width, &push_media.height, NULL, NULL);
else if (is_audio)
#endif
if (push_media.buf_type == PUSH_MEDIA_BUF_TYPE_RAW) {
buf_size = (int)push_media.size;
- if (muse_client_ipc_push_data(pc->cb_info->data_fd, buf, buf_size, push_media.pts) < 0) {
+ if ((muse_client_ipc_push_data(pc->cb_info->data_fd, buf, buf_size, push_media.pts) < 0) && (!is_eos)) {
LOGE("failed to send data");
return PLAYER_ERROR_INVALID_OPERATION;
}