Example #1
0
void onexit( void )
{
    printf("Cleaning up\n");
    if(!performOnExit)
        return;
    if(video_body) 
        video_body->cleanup ();
    delete video_body;
    video_body=NULL;
    // wait for thread to finish executing
    ADM_setCrashHook(NULL,NULL);
    destroyScriptEngines();
//    filterCleanUp();
    ADM_lavDestroy();

#ifdef USE_SDL
	quitSdl();
#endif


    AVDM_cleanup();


    destroyGUI();
    destroyPrefs();

    admPreview::destroy();
    UI_End();

    ADM_ad_cleanup();
    ADM_ae_cleanup();
    ADM_mx_cleanup();
    ADM_vf_clearFilters();
    ADM_vf_cleanup();
    ADM_dm_cleanup();
    ADM_ve6_cleanup();

    printf("--End of cleanup--\n");
    ADMImage_stat();

    ADM_info("\nGoodbye...\n\n");
}
Example #2
0
void onexit( void )
{
	printf("Cleaning up\n");
    if(video_body) video_body->cleanup ();
    delete video_body;
    // wait for thread to finish executing
    destroyScriptEngines();
//    filterCleanUp();
	ADM_lavDestroy();

#ifdef USE_SDL
	quitSdl();
#endif

	AVDM_cleanup();

	destroyGUI();
    destroyPrefs();

    admPreview::destroy();
    UI_End();

    ADM_ad_cleanup();
    ADM_ae_cleanup();
    ADM_vf_clearFilters();
    ADM_vf_cleanup();
    ADM_dm_cleanup();

	ADM_jobShutDown();
    printf("--End of cleanup--\n");
    ADMImage_stat();
    ADM_memStat();
    ADM_memStatEnd();

    ADM_info("\nGoodbye...\n\n");
}