fix buld error : change debug macro from mmf_debug to debug_error 06/33306/3 tizen_3.0.2014.q4_common tizen_3.0.2015.q1_common tizen_3.0_ivi accepted/tizen/common/20150109.133752 accepted/tizen/ivi/20150112.234210 accepted/tizen/mobile/20150111.050620 accepted/tizen/tv/20150111.045704 accepted/tizen/wearable/20150111.045944 submit/tizen/20150109.055336 submit/tizen_ivi/20150112.111111 tizen_3.0_ivi_release
authorHyunil Park <hyunil46.park@samsung.com>
Thu, 8 Jan 2015 07:23:53 +0000 (16:23 +0900)
committerHyunil Park <hyunil46.park@samsung.com>
Fri, 9 Jan 2015 05:25:42 +0000 (14:25 +0900)
Change-Id: I43555dc0dc09909a1ff3090a7cd19a53c63a375e
Signed-off-by: Hyunil Park <hyunil46.park@samsung.com>
packaging/libmm-radio.spec
src/mm_radio_priv.c [changed mode: 0644->0755]

index 3b2da6f..1e4302f 100644 (file)
@@ -1,7 +1,7 @@
 Name:       libmm-radio
 Summary:    Multimedia Framework Radio Library
 Version:    0.2.1
-Release:    0
+Release:    1
 Group:      System/Libraries
 License:    Apache-2.0
 Source0:    %{name}-%{version}.tar.gz
old mode 100644 (file)
new mode 100755 (executable)
index 1c2d922..8f3eb24
@@ -737,7 +737,7 @@ _mmradio_realize_pipeline(mm_radio_t* radio)
        g_object_set(radio->pGstreamer_s->avsysaudiosink, "sync", false, NULL);
 
        if (!radio->pGstreamer_s->pipeline || !radio->pGstreamer_s->avsysaudiosrc || !radio->pGstreamer_s->queue2 || !radio->pGstreamer_s->avsysaudiosink) {
-               mmf_debug(MMF_DEBUG_ERROR,"[%s][%05d] One element could not be created. Exiting.\n", __func__, __LINE__);
+               debug_error("[%s][%05d] One element could not be created. Exiting.\n", __func__, __LINE__);
                return MM_ERROR_RADIO_NOT_INITIALIZED;
        }
 
@@ -751,7 +751,7 @@ _mmradio_realize_pipeline(mm_radio_t* radio)
                        radio->pGstreamer_s->queue2,
                        radio->pGstreamer_s->avsysaudiosink,
                        NULL)) {
-               mmf_debug(MMF_DEBUG_ERROR,"[%s][%05d] Fail to link b/w appsrc and ffmpeg in rotate\n", __func__, __LINE__);
+               debug_error("[%s][%05d] Fail to link b/w appsrc and ffmpeg in rotate\n", __func__, __LINE__);
                return MM_ERROR_RADIO_NOT_INITIALIZED;
        }
        return ret;
@@ -765,7 +765,7 @@ _mmradio_start_pipeline(mm_radio_t* radio)
        debug_log("\n");
 
        if(gst_element_set_state (radio->pGstreamer_s->pipeline, GST_STATE_PLAYING) == GST_STATE_CHANGE_FAILURE) {
-               mmf_debug(MMF_DEBUG_ERROR, "Fail to change pipeline state");
+               debug_error("Fail to change pipeline state");
                gst_object_unref (radio->pGstreamer_s->pipeline);
                g_free (radio->pGstreamer_s);
                return MM_ERROR_RADIO_INVALID_STATE;
@@ -773,12 +773,12 @@ _mmradio_start_pipeline(mm_radio_t* radio)
 
        ret_state = gst_element_get_state (radio->pGstreamer_s->pipeline, NULL, NULL, GST_CLOCK_TIME_NONE);
        if (ret_state == GST_STATE_CHANGE_FAILURE) {
-               mmf_debug(MMF_DEBUG_ERROR, "GST_STATE_CHANGE_FAILURE");
+               debug_error("GST_STATE_CHANGE_FAILURE");
                gst_object_unref (radio->pGstreamer_s->pipeline);
                g_free (radio->pGstreamer_s);
                return MM_ERROR_RADIO_INVALID_STATE;
        } else {
-               mmf_debug (MMF_DEBUG_LOG, "[%s][%05d] GST_STATE_NULL ret_state = %d (GST_STATE_CHANGE_SUCCESS)\n", __func__, __LINE__, ret_state);
+               debug_log("[%s][%05d] GST_STATE_NULL ret_state = %d (GST_STATE_CHANGE_SUCCESS)\n", __func__, __LINE__, ret_state);
        }
        return ret;
 }
@@ -791,7 +791,7 @@ _mmradio_stop_pipeline(mm_radio_t* radio)
 
        debug_log("\n");
        if(gst_element_set_state (radio->pGstreamer_s->pipeline, GST_STATE_READY) == GST_STATE_CHANGE_FAILURE) {
-               mmf_debug(MMF_DEBUG_ERROR, "Fail to change pipeline state");
+               debug_error("Fail to change pipeline state");
                gst_object_unref (radio->pGstreamer_s->pipeline);
                g_free (radio->pGstreamer_s);
                return MM_ERROR_RADIO_INVALID_STATE;
@@ -799,12 +799,12 @@ _mmradio_stop_pipeline(mm_radio_t* radio)
 
        ret_state = gst_element_get_state (radio->pGstreamer_s->pipeline, NULL, NULL, GST_CLOCK_TIME_NONE);
        if (ret_state == GST_STATE_CHANGE_FAILURE) {
-               mmf_debug(MMF_DEBUG_ERROR, "GST_STATE_CHANGE_FAILURE");
+               debug_error("GST_STATE_CHANGE_FAILURE");
                gst_object_unref (radio->pGstreamer_s->pipeline);
                g_free (radio->pGstreamer_s);
                return MM_ERROR_RADIO_INVALID_STATE;
        } else {
-               mmf_debug (MMF_DEBUG_LOG, "[%s][%05d] GST_STATE_NULL ret_state = %d (GST_STATE_CHANGE_SUCCESS)\n", __func__, __LINE__, ret_state);
+               debug_log("[%s][%05d] GST_STATE_NULL ret_state = %d (GST_STATE_CHANGE_SUCCESS)\n", __func__, __LINE__, ret_state);
        }
        return ret;
 }
@@ -817,7 +817,7 @@ _mmradio_destroy_pipeline(mm_radio_t * radio)
        debug_log("\n");
 
        if(gst_element_set_state (radio->pGstreamer_s->pipeline, GST_STATE_NULL) == GST_STATE_CHANGE_FAILURE) {
-               mmf_debug(MMF_DEBUG_ERROR, "Fail to change pipeline state");
+               debug_error("Fail to change pipeline state");
                gst_object_unref (radio->pGstreamer_s->pipeline);
                g_free (radio->pGstreamer_s);
                return MM_ERROR_RADIO_INVALID_STATE;
@@ -825,12 +825,12 @@ _mmradio_destroy_pipeline(mm_radio_t * radio)
 
        ret_state = gst_element_get_state (radio->pGstreamer_s->pipeline, NULL, NULL, GST_CLOCK_TIME_NONE);
        if (ret_state == GST_STATE_CHANGE_FAILURE) {
-               mmf_debug(MMF_DEBUG_ERROR, "GST_STATE_CHANGE_FAILURE");
+               debug_error("GST_STATE_CHANGE_FAILURE");
                gst_object_unref (radio->pGstreamer_s->pipeline);
                g_free (radio->pGstreamer_s);
                return MM_ERROR_RADIO_INVALID_STATE;
        } else {
-               mmf_debug (MMF_DEBUG_LOG, "[%s][%05d] GST_STATE_NULL ret_state = %d (GST_STATE_CHANGE_SUCCESS)\n", __func__, __LINE__, ret_state);
+               debug_log ("[%s][%05d] GST_STATE_NULL ret_state = %d (GST_STATE_CHANGE_SUCCESS)\n", __func__, __LINE__, ret_state);
        }
        gst_object_unref (radio->pGstreamer_s->pipeline);
        g_free (radio->pGstreamer_s);
@@ -1410,7 +1410,7 @@ __mmradio_asm_callback(int handle, ASM_event_sources_t event_source, ASM_sound_c
                                                MMRADIO_LOG_ERROR("failed to stop radio\n");
                                        }
 
-                                       MMRADIO_LOG_DEBUG("skip unrealize in asm callback")
+                                       MMRADIO_LOG_DEBUG("skip unrealize in asm callback");
                                }
                                break;