hb_lock_t *hb_avcodec_lock;
hb_work_object_t * hb_objects = NULL;
+hb_process_initialized = 0;
static void thread_func( void * );
+
+int hello_world(){
+ return 55555;
+}
+
+
void hb_avcodec_init()
{
hb_avcodec_lock = hb_lock_init();
*/
hb_handle_t * hb_init( int verbose, int update_check )
{
+ if (!hb_process_initialized)
+ {
+#ifdef USE_PTHREAD
+#if defined( _WIN32 ) || defined( __MINGW32__ )
+ pthread_win32_process_attach_np();
+#endif
+#endif
+ hb_process_initialized =1;
+ }
+
hb_handle_t * h = calloc( sizeof( hb_handle_t ), 1 );
uint64_t date;
number and points 'version' to a version description. Returns a
negative value otherwise. */
int hb_check_update( hb_handle_t * h, char ** version );
+
+ int hello_world();
/* hb_set_cpu_count()
Force libhb to act as if you had X CPU(s).
return 1;
}
-#if defined( PTW32_STATIC_LIB )
- pthread_win32_process_attach_np();
- pthread_win32_thread_attach_np();
-#endif
-
/* Register our error handler */
hb_register_error_handler(&hb_cli_error_handler);