From 16deb214281cd72ffaf2a11d3a5556c5b950a966 Mon Sep 17 00:00:00 2001 From: Rodeo Date: Mon, 3 Jun 2013 15:37:38 +0000 Subject: libhb/common: improve fallback mechanism. API changes: - added hb_global_init(), must be called before any other libhb function - removed (somewhat pointless) hb_mixdown_t.internal_name - some hb_*_get_from_name() functions now return 0 instead of -1. Instead of hardcoded fallbacks, list items now have a specific fallback, and a generic ID for when the specific fallback is unavailable. Encoder availability is checked at runtime (hb_global_init calling hb_common_global_init) and the item's value/fallback is sanity-checked and updated if necessary. See https://reviews.handbrake.fr/r/506/ for more detailed information. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5547 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- macosx/Controller.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'macosx/Controller.m') diff --git a/macosx/Controller.m b/macosx/Controller.m index 34891e878..d5dd32bff 100644 --- a/macosx/Controller.m +++ b/macosx/Controller.m @@ -701,7 +701,7 @@ static NSString * ChooseSourceIdentifier = @"Choose Source It menuItem = [[fVidRatePopUp menu] addItemWithTitle:@"Same as source" action:nil keyEquivalent:@""]; - [menuItem setTag:-1]; // hb_video_framerate_get_from_name(NULL) + [menuItem setTag:hb_video_framerate_get_from_name("Same as source")]; for (const hb_rate_t *video_framerate = hb_video_framerate_get_next(NULL); video_framerate != NULL; video_framerate = hb_video_framerate_get_next(video_framerate)) -- cgit v1.2.3