[0.3.138] Set the initial value of cb_info->data_fd 42/246142/1 accepted/tizen/unified/20201102.124432 submit/tizen/20201028.052639
authorGilbok Lee <gilbok.lee@samsung.com>
Mon, 26 Oct 2020 01:29:02 +0000 (10:29 +0900)
committerGilbok Lee <gilbok.lee@samsung.com>
Mon, 26 Oct 2020 01:29:26 +0000 (10:29 +0900)
Change-Id: I9e83088173eeaa1a0062d3ee71801af4ce9abadd

packaging/capi-media-player.spec
src/player.c

index 58dadd4fa2cff0631ced867f1e84f2701a227c32..f384b87dde19a9a249c838012cd2c5ee601e19dd 100644 (file)
@@ -1,6 +1,6 @@
 Name:       capi-media-player
 Summary:    A Media Player API
-Version:    0.3.137
+Version:    0.3.138
 Release:    0
 Group:      Multimedia/API
 License:    Apache-2.0
index c15bcb1ee3f553016388ad5cd170a391efa6f649..4487deaa94f556ee1bab5e8d9f53f7754d757c3f 100644 (file)
@@ -1867,8 +1867,9 @@ static callback_cb_info_s *callback_new(gint sockfd)
 
        g_atomic_int_set(&cb_info->running, 1);
        cb_info->fd = sockfd;
-       cb_info->thread = g_thread_new("callback_thread", client_cb_handler, (gpointer) cb_info);
        cb_info->tfd = INVALID_DEFAULT_VALUE;
+       cb_info->data_fd = INVALID_DEFAULT_VALUE;
+       cb_info->thread = g_thread_new("callback_thread", client_cb_handler, (gpointer) cb_info);
 
        return cb_info;
 }