summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGilbok Lee <gilbok.lee@samsung.com>2017-03-30 15:13:48 +0900
committerGilbok Lee <gilbok.lee@samsung.com>2017-03-30 15:13:48 +0900
commit22626812ea67f551f47973ea4b8304a0559dcc0b (patch)
tree4d9e7e9b63751dcae827647ac37c35c970228515
parent77c4ff2daf8029e23e8699edef5701d7fe5853d4 (diff)
downloadlibmm-radio-accepted/tizen_ivi.tar.gz
libmm-radio-accepted/tizen_ivi.tar.bz2
libmm-radio-accepted/tizen_ivi.zip
[Version] 0.2.23 [Profile] Mobile, Wearable Change-Id: I734104878cad379cece98606c46fb61be9d3a430
-rwxr-xr-xpackaging/libmm-radio.spec2
-rw-r--r--src/mm_radio_priv_emulator.c8
2 files changed, 5 insertions, 5 deletions
diff --git a/packaging/libmm-radio.spec b/packaging/libmm-radio.spec
index e0a44fd..615747f 100755
--- a/packaging/libmm-radio.spec
+++ b/packaging/libmm-radio.spec
@@ -1,6 +1,6 @@
Name: libmm-radio
Summary: Multimedia Framework Radio Library
-Version: 0.2.22
+Version: 0.2.23
Release: 0
Group: System/Libraries
License: Apache-2.0
diff --git a/src/mm_radio_priv_emulator.c b/src/mm_radio_priv_emulator.c
index 19d5c6b..9debc9a 100644
--- a/src/mm_radio_priv_emulator.c
+++ b/src/mm_radio_priv_emulator.c
@@ -76,7 +76,7 @@
#define EMULATOR_FREQ_MAX 5
#define RADIO_MIN_VOLUME 0.0
#define RADIO_MAX_VOLUME 1.0
-
+#define RADIO_GST_STATE_CHANGE_TIMEOUT (10 * GST_SECOND)
/*---------------------------------------------------------------------------
LOCAL CONSTANT DEFINITIONS:
---------------------------------------------------------------------------*/
@@ -705,7 +705,7 @@ int _mmradio_start_pipeline(mm_radio_t * radio)
return MM_ERROR_RADIO_INVALID_STATE;
}
- ret_state = gst_element_get_state(radio->pGstreamer_s->pipeline, NULL, NULL, GST_CLOCK_TIME_NONE);
+ ret_state = gst_element_get_state(radio->pGstreamer_s->pipeline, NULL, NULL, RADIO_GST_STATE_CHANGE_TIMEOUT);
if (ret_state == GST_STATE_CHANGE_FAILURE) {
MMRADIO_LOG_ERROR("GST_STATE_CHANGE_FAILURE");
gst_object_unref(radio->pGstreamer_s->pipeline);
@@ -732,7 +732,7 @@ int _mmradio_stop_pipeline(mm_radio_t * radio)
return MM_ERROR_RADIO_INVALID_STATE;
}
- ret_state = gst_element_get_state(radio->pGstreamer_s->pipeline, NULL, NULL, GST_CLOCK_TIME_NONE);
+ ret_state = gst_element_get_state(radio->pGstreamer_s->pipeline, NULL, NULL, RADIO_GST_STATE_CHANGE_TIMEOUT);
if (ret_state == GST_STATE_CHANGE_FAILURE) {
MMRADIO_LOG_DEBUG("GST_STATE_CHANGE_FAILURE");
gst_object_unref(radio->pGstreamer_s->pipeline);
@@ -758,7 +758,7 @@ int _mmradio_destroy_pipeline(mm_radio_t * radio)
return MM_ERROR_RADIO_INVALID_STATE;
}
- ret_state = gst_element_get_state(radio->pGstreamer_s->pipeline, NULL, NULL, GST_CLOCK_TIME_NONE);
+ ret_state = gst_element_get_state(radio->pGstreamer_s->pipeline, NULL, NULL, RADIO_GST_STATE_CHANGE_TIMEOUT);
if (ret_state == GST_STATE_CHANGE_FAILURE) {
MMRADIO_LOG_DEBUG("GST_STATE_CHANGE_FAILURE");
gst_object_unref(radio->pGstreamer_s->pipeline);