summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreunhae choi <eunhae1.choi@samsung.com>2019-04-11 09:34:18 +0000
committerGerrit Code Review <gerrit@review.ap-northeast-2.compute.internal>2019-04-11 09:34:18 +0000
commitdf379345a9117481de712cfafc7bceb0c95bcd86 (patch)
tree1d7d699b2f5f86e6c3aa1a93defad3697e1b330e
parentb07f64551207cfed5072e9217de48c6d1920177a (diff)
parent7270c8fcfc5103451c1645add20819bfc213a3da (diff)
downloadlibmm-player-df379345a9117481de712cfafc7bceb0c95bcd86.tar.gz
libmm-player-df379345a9117481de712cfafc7bceb0c95bcd86.tar.bz2
libmm-player-df379345a9117481de712cfafc7bceb0c95bcd86.zip
Merge "[0.6.181] remove unused property that is set to pulsesink" into tizen
-rw-r--r--src/include/mm_player_priv.h1
-rw-r--r--src/mm_player_priv.c11
2 files changed, 3 insertions, 9 deletions
diff --git a/src/include/mm_player_priv.h b/src/include/mm_player_priv.h
index fdb8569..aa44c5d 100644
--- a/src/include/mm_player_priv.h
+++ b/src/include/mm_player_priv.h
@@ -377,7 +377,6 @@ typedef struct {
float volume;
int mute;
int bluetooth; /* enable/disable */
- int focus_id;
bool rg_enable;
} mmplayer_sound_info_t;
diff --git a/src/mm_player_priv.c b/src/mm_player_priv.c
index 644c8e1..a6410f8 100644
--- a/src/mm_player_priv.c
+++ b/src/mm_player_priv.c
@@ -2504,16 +2504,11 @@ __mmplayer_gst_set_pulsesink_property(mmplayer_t *player, MMHandleType attrs)
if (!stream_type) {
LOGE("stream_type is null.");
} else {
- if (player->sound.focus_id)
- snprintf(stream_props, sizeof(stream_props) - 1, "props,media.role=%s, media.parent_id=%d, media.focus_id=%d",
- stream_type, stream_id, player->sound.focus_id);
- else
- snprintf(stream_props, sizeof(stream_props) - 1, "props,media.role=%s, media.parent_id=%d",
- stream_type, stream_id);
+ snprintf(stream_props, sizeof(stream_props) - 1, "props,media.role=%s, media.parent_id=%d",
+ stream_type, stream_id);
props = gst_structure_from_string(stream_props, NULL);
g_object_set(player->pipeline->audiobin[MMPLAYER_A_SINK].gst, "stream-properties", props, NULL);
- LOGI("stream_type[%s], stream_id[%d], focus_id[%d], result[%s].",
- stream_type, stream_id, player->sound.focus_id, stream_props);
+ LOGI("stream_type[%s], stream_id[%d], result[%s].", stream_type, stream_id, stream_props);
gst_structure_free(props);
}