diff options
author | jstebbins <[email protected]> | 2010-03-26 14:54:05 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2010-03-26 14:54:05 +0000 |
commit | ff1bc2964476e2cbf22ed3dd7aa249a9cc77368b (patch) | |
tree | 66d27421270e27e82469b6076fca037e448a68dc /libhb/scan.c | |
parent | 8101df03de52879c876ca73b02a627baa4d09c4a (diff) |
make it possible to dynamically create and close multiple libhb instances
tweaks to make libhb more usable from a C# app
remove pointers from preview filenames, replaces with hb instance and title id's
removes only previews upon hb_close, leaves temp dir for hb_global_close
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3170 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/scan.c')
-rw-r--r-- | libhb/scan.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libhb/scan.c b/libhb/scan.c index 66afb2a21..e14e6712b 100644 --- a/libhb/scan.c +++ b/libhb/scan.c @@ -609,8 +609,8 @@ static int DecodePreviews( hb_scan_t * data, hb_title_t * title ) if( data->store_previews ) { - hb_get_tempory_filename( data->h, filename, "%" PRIxPTR "%d", - (intptr_t)title, i ); + hb_get_tempory_filename( data->h, filename, "%d_%d_%d", + hb_get_instance_id(data->h), title->index, i ); file_preview = fopen( filename, "wb" ); if( file_preview ) |