Name: libmm-player
Summary: Multimedia Framework Player Library
-Version: 0.6.214
+Version: 0.6.215
Release: 0
Group: Multimedia/Libraries
License: Apache-2.0
format = MEDIA_FORMAT_PCM_F32LE;
else if (!strcmp(name, "PCM_F32BE"))
format = MEDIA_FORMAT_PCM_F32BE;
- else if (!strcmp(name, "PCM_S16LE"))
+ else if (!strcmp(name, "PCM_U16LE"))
format = MEDIA_FORMAT_PCM_U16LE;
else if (!strcmp(name, "PCM_U24LE"))
format = MEDIA_FORMAT_PCM_U24LE;
player->pipeline->mainbin, MM_ERROR_PLAYER_NOT_INITIALIZED);
src_element = GST_ELEMENT_CAST(message->src);
- if (!src_element)
- return MM_ERROR_PLAYER_INTERNAL;
-
src_element_name = GST_ELEMENT_NAME(src_element);
if (!src_element_name)
return MM_ERROR_PLAYER_INTERNAL;
/* if no protocol prefix exist. check file existence and then give file:// as it's prefix */
if (ret == MM_ERROR_NONE) {
- g_snprintf(data->uri, MM_MAX_URL_LEN, "file://%s", path);
if (_mmplayer_is_sdp_file(path)) {
LOGD("uri is actually a file but it's sdp file. giving it to rtspsrc");
+ g_snprintf(data->uri, MM_MAX_URL_LEN, "rtsp-sdp://%s", path);
data->uri_type = MM_PLAYER_URI_TYPE_URL_RTSP;
} else {
+ g_snprintf(data->uri, MM_MAX_URL_LEN, "file://%s", path);
data->uri_type = MM_PLAYER_URI_TYPE_FILE;
}
} else if (ret == MM_ERROR_PLAYER_PERMISSION_DENIED) {
buffer_handle = &(streamer->buffer_handle[BUFFER_TYPE_MUXED]);
- if (!(buffer_handle && buffer_handle->buffer)) {
- LOGE("buffer_handle->buffer is NULL!");
- return;
- }
-
if (type == MUXED_BUFFER_TYPE_MEM_QUEUE) { /* ts */
LOGD("use memory queue for buffering. streaming is played on push-based. \n"
"buffering position would not be updated.\n"