sync with master : Hook volume type when emergency session
authorSeungbae Shin <seungbae.shin@samsung.com>
Fri, 14 Sep 2012 10:24:04 +0000 (19:24 +0900)
committerSeungbae Shin <seungbae.shin@samsung.com>
Fri, 14 Sep 2012 10:24:04 +0000 (19:24 +0900)
packaging/libmm-player.spec
src/mm_player_priv.c

index cb0aee2..8d1cf2d 100644 (file)
@@ -2,7 +2,7 @@
 Name:       libmm-player
 Summary:    Multimedia Framework Player Library
 Version:    0.2.1
-Release:    1
+Release:    2
 Group:      System/Libraries
 License:    TBD
 Source0:    %{name}-%{version}.tar.gz
index 6c07122..b6951ec 100755 (executable)
@@ -3101,6 +3101,13 @@ __mmplayer_gst_create_audio_pipeline(mm_player_t* player)
                        mm_attrs_get_int_by_name(attrs, "sound_priority", &sound_priority);
                        mm_attrs_get_int_by_name(attrs, "sound_spk_out_only", &is_spk_out_only);
 
+                       /* hook sound_type if emergency case */
+                       if ( player->sm.event == ASM_EVENT_EMERGENCY)
+                       {
+                               debug_log ("This is emergency session, hook sound_type from [%d] to [%d]\n", volume_type, MM_SOUND_VOLUME_TYPE_EMERGENCY);
+                               volume_type = MM_SOUND_VOLUME_TYPE_EMERGENCY;
+                       }
+
                        g_object_set(audiobin[MMPLAYER_A_SINK].gst,
                                                                "volumetype", volume_type,
                                                                "audio-route", audio_route,