summaryrefslogtreecommitdiffstats
path: root/libhb/hb.c
diff options
context:
space:
mode:
authortiter <[email protected]>2006-03-16 08:08:36 +0000
committertiter <[email protected]>2006-03-16 08:08:36 +0000
commit0531e628d2bf701202857411035c05a2b2544c58 (patch)
tree1f254e6ac34761aa89667f633618eae296753c7f /libhb/hb.c
parenta40bc8fa76c2e510498944b0de222cd843c6672a (diff)
Added hb_init_express - makes the binary smaller. Still need to strip
the unused avi and ogm muxers. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@36 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/hb.c')
-rw-r--r--libhb/hb.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/libhb/hb.c b/libhb/hb.c
index f27a353bc..0e78b1e2c 100644
--- a/libhb/hb.c
+++ b/libhb/hb.c
@@ -42,9 +42,17 @@ struct hb_handle_s
hb_lock_t * pause_lock;
};
+hb_work_object_t * hb_objects = NULL;
+
static void thread_func( void * );
-hb_handle_t * hb_init( int verbose, int update_check )
+void hb_register( hb_work_object_t * w )
+{
+ w->next = hb_objects;
+ hb_objects = w;
+}
+
+hb_handle_t * hb_init_real( int verbose, int update_check )
{
hb_handle_t * h = calloc( sizeof( hb_handle_t ), 1 );
uint64_t date;