static void __mmplayer_set_unlinked_mime_type(mm_player_t* player, GstCaps *caps);
/* util */
-static gboolean __is_es_buff_src(mm_player_t* player);
+static gboolean __is_ms_buff_src(mm_player_t* player);
static gboolean __has_suffix(mm_player_t * player, const gchar * suffix);
static int __mmplayer_realize_streaming_ext(mm_player_t* player);
gint samplerate = 0;
gint channels = 0;
- if (MMPLAYER_IS_ES_BUFF_SRC(player))
+ if (MMPLAYER_IS_MS_BUFF_SRC(player))
{
__mmplayer_gst_decode_callback (elem, pad, player);
return;
}
- if (!MMPLAYER_IS_ES_BUFF_SRC(player))
+ if (!MMPLAYER_IS_MS_BUFF_SRC(player))
{
if (text_selector)
{
G_CALLBACK(__gst_appsrc_enough_data), player);
}
break;
- case MM_PLAYER_URI_TYPE_ES_BUFF:
+ case MM_PLAYER_URI_TYPE_MS_BUFF:
{
- LOGD("es buff src is selected\n");
+ LOGD("MS buff src is selected\n");
if (player->v_stream_caps)
{
NULL,
0);
}
- if (MMPLAYER_IS_ES_BUFF_SRC(player))
+ if (MMPLAYER_IS_MS_BUFF_SRC(player))
{
if (player->v_stream_caps)
{
/* create autoplugging element if src element is not a rtsp src */
if ((player->profile.uri_type != MM_PLAYER_URI_TYPE_URL_RTSP) &&
(player->profile.uri_type != MM_PLAYER_URI_TYPE_URL_WFD) &&
- (player->profile.uri_type != MM_PLAYER_URI_TYPE_ES_BUFF))
+ (player->profile.uri_type != MM_PLAYER_URI_TYPE_MS_BUFF))
{
element = NULL;
enum MainElementID elemId = MMPLAYER_M_NUM;
/* now we have completed mainbin. take it */
player->pipeline->mainbin = mainbin;
- if (MMPLAYER_IS_ES_BUFF_SRC(player))
+ if (MMPLAYER_IS_MS_BUFF_SRC(player))
{
GstPad *srcpad = NULL;
&& MMPLAYER_CURRENT_STATE(player) != MM_PLAYER_STATE_PAUSED )
goto PENDING;
- if( !MMPLAYER_IS_ES_BUFF_SRC(player) )
+ if( !MMPLAYER_IS_MS_BUFF_SRC(player) )
{
/* check duration */
/* NOTE : duration cannot be zero except live streaming.
{
case MM_PLAYER_POS_FORMAT_TIME:
{
- if( !MMPLAYER_IS_ES_BUFF_SRC(player) )
+ if( !MMPLAYER_IS_MS_BUFF_SRC(player) )
{
/* check position is valid or not */
if ( position > dur_msec )
if (strlen(path))
{
strcpy(data->uri, uri);
- data->uri_type = MM_PLAYER_URI_TYPE_ES_BUFF;
+ data->uri_type = MM_PLAYER_URI_TYPE_MS_BUFF;
ret = MM_ERROR_NONE;
}
}
mm_attrs_get_string_by_name(attrs, "profile_uri", &uri);
mm_attrs_get_data_by_name(attrs, "profile_user_param", ¶m);
- ret = __mmfplayer_parse_profile((const char*)uri, param, &player->profile);
-
- if (ret != MM_ERROR_NONE)
+ if (player->profile.uri_type == MM_PLAYER_URI_TYPE_NONE)
{
- LOGE("failed to parse profile\n");
- return ret;
+ ret = __mmfplayer_parse_profile((const char*)uri, param, &player->profile);
+
+ if (ret != MM_ERROR_NONE)
+ {
+ LOGE("failed to parse profile\n");
+ return ret;
+ }
}
/* FIXIT : we can use thouse in player->profile directly */
player->mem_buf.offset = 0;
}
- if (player->profile.uri_type == MM_PLAYER_URI_TYPE_ES_BUFF)
+ if (uri && (strstr(uri, "es_buff://")))
{
if (strstr(uri, "es_buff://push_mode"))
{
klass = gst_element_factory_get_metadata (GST_ELEMENT_FACTORY(factory), GST_ELEMENT_METADATA_KLASS);
/*parsers are not required in case of external feeder*/
- if (g_strrstr(klass, "Codec/Parser") && MMPLAYER_IS_ES_BUFF_SRC(player))
+ if (g_strrstr(klass, "Codec/Parser") && MMPLAYER_IS_MS_BUFF_SRC(player))
continue;
/* NOTE : msl don't need to use image plugins.
goto DONE;
}
- if ((MMPLAYER_IS_ES_BUFF_SRC(player)) &&
+ if ((MMPLAYER_IS_MS_BUFF_SRC(player)) &&
(g_strrstr(klass, "Codec/Demuxer") || (g_strrstr(klass, "Codec/Parser"))))
{
// TO CHECK : subtitle if needed, add subparse exception.
}
}
- if( MMPLAYER_IS_ES_BUFF_SRC(player))
+ if( MMPLAYER_IS_MS_BUFF_SRC(player))
{
sinks = g_list_next (sinks);
continue;
}
gboolean
-__is_es_buff_src( mm_player_t* player )
+__is_ms_buff_src( mm_player_t* player )
{
MMPLAYER_RETURN_VAL_IF_FAIL ( player, FALSE );
- return ( player->profile.uri_type == MM_PLAYER_URI_TYPE_ES_BUFF) ? TRUE : FALSE;
+ return ( player->profile.uri_type == MM_PLAYER_URI_TYPE_MS_BUFF) ? TRUE : FALSE;
}
gboolean