Fixed scan_thread initialization bug 07/150307/1 accepted/tizen/unified/20170920.065514 submit/tizen/20170918.031323
authorGilbok Lee <gilbok.lee@samsung.com>
Fri, 15 Sep 2017 04:08:26 +0000 (13:08 +0900)
committerGilbok Lee <gilbok.lee@samsung.com>
Fri, 15 Sep 2017 04:08:26 +0000 (13:08 +0900)
[Version] 0.2.31
[Profile] Mobile, Wearable
[Issue Type] Fix bugs

Change-Id: I327129e3e1a89e7ee5ab43f1e1da81d2e4557e2a

packaging/libmm-radio.spec
src/mm_radio_priv_hal.c

index 9c9695a..d44a5dc 100755 (executable)
@@ -1,6 +1,6 @@
 Name:       libmm-radio
 Summary:    Multimedia Framework Radio Library
-Version:    0.2.30
+Version:    0.2.31
 Release:    0
 Group:      System/Libraries
 License:    Apache-2.0
index 1dfff6f..6e9cffd 100644 (file)
@@ -1047,7 +1047,6 @@ FINISHED:
        }
 
 FINISHED_ERR:
-       radio->scan_thread = 0;
 
        if (radio->old_state == MM_RADIO_STATE_PLAYING) {
                MMRADIO_SET_STATE(radio, MM_RADIO_STATE_PLAYING);
@@ -1094,6 +1093,7 @@ FINISHED_ERR:
 
        MMRADIO_LOG_FLEAVE();
 
+       radio->scan_thread = 0;
        pthread_exit(NULL);
 }