$(INIPARSER_LIBS) \
$(VCONF_LIBS)
-libmmfplayer_la_CFLAGS += $(MMLOG_CFLAGS) -DMMF_LOG_OWNER=0x008 -DMMF_DEBUG_PREFIX=\"MMF-PLAYER\" -D_INTERNAL_SESSION_MANAGER_ -DSW_CODEC_ONLY
+libmmfplayer_la_CFLAGS += $(MMLOG_CFLAGS) -DMMF_LOG_OWNER=0x008 -DMMF_DEBUG_PREFIX=\"MMF-PLAYER\" -D_INTERNAL_SESSION_MANAGER_
libmmfplayer_la_LIBADD += $(MMLOG_LIBS)
libmmfplayerclient_la_CFLAGS += $(MMLOG_CFLAGS) -DMMF_LOG_OWNER=0x008 -DMMF_DEBUG_PREFIX=\"MMF-PLAYER\" -D_INTERNAL_SESSION_MANAGER_
int surface_type = 0;
gchar *videosink_element = NULL;
gchar *videosrc_element = NULL;
+ gboolean use_tbm = FALSE;
/* check current state */
MMPLAYER_CHECK_STATE_RETURN_IF_FAIL( player, MMPLAYER_COMMAND_REALIZE );
result = MM_ERROR_PLAYER_INTERNAL;
goto REALIZE_ERROR;
}
+
+ if(string_caps && (strstr(string_caps, "ST12") || strstr(string_caps, "SN12"))) {
+ debug_log("using TBM");
+ use_tbm = TRUE;
+ }
+
if(strcmp(videosrc_element, "shmsrc") == 0) {
attr_ret = mm_attrs_get_string_by_name ( attrs, "shm_stream_path", &stream_path );
if(attr_ret == MM_ERROR_NONE && stream_path) {
g_object_set(G_OBJECT(src),
"socket-path", stream_path,
"is-live", TRUE,
+ "use-tbm", use_tbm,
NULL);
} else {
result = MM_ERROR_PLAYER_INTERNAL;
case MM_DISPLAY_SURFACE_REMOTE:
{
char *stream_path = NULL;
+ /* viceo_zc is the result of check ST12/SN12 */
+ bool use_tbm = player->set_mode.video_zc;
int attr_ret = mm_attrs_get_string_by_name (
attrs, "shm_stream_path", &stream_path );
if(attr_ret == MM_ERROR_NONE && stream_path) {
"socket-path", stream_path,
"wait-for-connection", FALSE,
"sync", TRUE,
+ "use-tbm", use_tbm,
NULL);
debug_log("set path \"%s\" for shmsink", stream_path);
} else {
_mmplayer_track_initialize(player);
-#ifdef SW_CODEC_ONLY
- mm_attrs_get_int_by_name (player->attrs, "display_surface_type", &surface_type);
- if(surface_type == MM_DISPLAY_SURFACE_REMOTE)
- {
- int idx = 0;
- while (player->ini.exclude_element_keyword[idx][0] != '\0')
- {
- idx++;
- }
- if(idx < PLAYER_INI_MAX_ELEMENT)
- {
- strncpy(player->ini.exclude_element_keyword[idx],
- "omx", PLAYER_INI_MAX_STRLEN);
- debug_log("Remote surface uses s/w codec");
- }
- }
-#endif
-
/* create source element */
switch ( player->profile.uri_type )
{