/* * mongoose server thread */ static void *hls_mongoose_thread(void *arg) { hls_obj_t *hls_obj = (hls_obj_t *)arg; hls_info("get into %s\n", __func__); #ifndef __ANDROID_ sem_wait(hls_obj->proxy_start_sem); set_ctx_to_mg(hls_obj->hls_ctx); #else /* FIXME just put here */ hls_event_send(NULL, /* init success */libhls_MediaPlayerOpening); #endif /* * in the while(...) */ #ifndef __THREAD_EXIT_TEST_ /* give ts data queue to mongoose */ start_proxy(); #endif pthread_exit(NULL); hls_info("get out of %s\n", __func__); }
static void startProxy(JNIEnv *env, jclass clazz) { LOGE("call startProxy"); start_proxy(); }