Signed-off-by: Hyongtaek Lim <hyongtaek.lim@samsung.com>
Change-Id: Ib9c4cf39d7eddb190c13762931d90f727123b0cf
return NULL;
}
+static void _notify_disconnected(callback_cb_info_s *cb_info)
+{
+ int code = PLAYER_ERROR_SERVICE_DISCONNECTED;
+ _player_event_e ev = _PLAYER_EVENT_TYPE_ERROR;
+ if(!cb_info || !cb_info->user_cb[ev])
+ return;
+ ((player_error_cb) cb_info->user_cb[ev])(code, cb_info->user_data[ev]);
+}
+
static void *client_cb_handler(gpointer data)
{
int api;
if (len <= 0)
break;
}
+ if (g_atomic_int_get(&cb_info->running))
+ _notify_disconnected(cb_info);
LOGD("client cb exit");
return NULL;