[0.6.181] remove unused property that is set to pulsesink 48/203148/1
authorSangchul Lee <sc11.lee@samsung.com>
Wed, 10 Apr 2019 07:06:39 +0000 (16:06 +0900)
committerSangchul Lee <sc11.lee@samsung.com>
Wed, 10 Apr 2019 07:09:49 +0000 (16:09 +0900)
- media.focus_id was used for session backward compatibility.

Change-Id: I4bccf950f805e0b3c8a8646c62e21f748575dfc4
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
packaging/libmm-player.spec
src/include/mm_player_priv.h
src/mm_player_priv.c

index 349dc81..fc928cf 100644 (file)
@@ -1,6 +1,6 @@
 Name:       libmm-player
 Summary:    Multimedia Framework Player Library
-Version:    0.6.180
+Version:    0.6.181
 Release:    0
 Group:      Multimedia/Libraries
 License:    Apache-2.0
index fdb8569..aa44c5d 100644 (file)
@@ -377,7 +377,6 @@ typedef struct {
        float volume;
        int mute;
        int bluetooth;  /* enable/disable */
-       int focus_id;
        bool rg_enable;
 } mmplayer_sound_info_t;
 
index fe5ef87..c9c440e 100644 (file)
@@ -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);
        }