summaryrefslogtreecommitdiffstats
path: root/macosx/Controller.m
Commit message (Collapse)AuthorAgeFilesLines
* MacGui: Add flexible dylib path manipulation so that we can handle external ↵jstebbins2010-06-041-124/+11
| | | | | | | | | | | | | | | | | | dylibs more easily At startup, add any extra dylib paths to DYLD_FALLBACK_LIBRARY_PATH. This is the last path searched by the system for dylibs and we add our paths to the end of it's list, so this will never override any system libs or paths the user has explicitly set. Since applications read the environment once at startup, these changes don't take effect until we restart with execv. In order to avoid a possible exec bomb, we add a parameter to the argv list to prevent any further exec's. Note that this causes a minor glitch when running under gdb. The execv triggers a trap. You just have to 'continue'. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3351 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Enable soft vobsubs in mp4dynaflash2010-05-251-43/+20
| | | | | | | | | - Initial patch by Rodeo. Thanks Rodeo! - Enables soft vobsubsin macgui as per http://trac.handbrake.fr/changeset/3325 - Due to the fact that currently no quicktime based playback devices (yes, including computers and iphone/ipod/ipad) supports soft vobsubs, "Burned In" is on by default. - Currently soft vobsubs are shown as supported by VLC (Lunettes) and Mplayer on the mac platform. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3326 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Chapter Title import/export functionalitydynaflash2010-05-061-1/+149
| | | | | | | | | - Saves the chapter list to a .csv file which is compatible with the cli and wingui. - Note: comma's in the chapter name are escaped with a "\" to maintain cli compatibility then if necessary stripped upon re import into macgui. - Original patch by borgclone and added to by realityking. Thanks! - Feature development referenced here http://forum.handbrake.fr/viewtopic.php?f=4&t=4146&start=0 git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3285 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: reset hb_filter_decomb after use, so switching between default ↵dynaflash2010-04-271-0/+4
| | | | | | decomb and a custom decomb string does cause a garbage string. Thanks j45 for the patch! git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3269 b64f7644-9d1e-0410-96f1-a4d463321fa5
* add dvd main feature title detectionjstebbins2010-04-201-9/+6
| | | | | | | | | | | | scans the dvd menus and presses buttons to see where they might lead. when a button press leads to a title, i check to see if it is the longest seen thus far and save it's index. this only applies when dvdnav is enabled. when dvdread is in use, the longest title of all the titles is flagged as the "main feature" git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3245 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Allow up to 320 kbps bitrate for stereo and 768 kbps for 6 channel ↵dynaflash2010-04-141-4/+3
| | | | | | discrete when using the faac audio encoder as per rev 3222 to the libhb. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3223 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Remove another queue incrementing log message.dynaflash2010-04-091-1/+1
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3211 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Remove more unneeded activity log messages and clean up some ↵dynaflash2010-04-091-27/+8
| | | | | | commented out code. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3210 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Remove a bunch of verbose activity log messages for Point to Point ↵dynaflash2010-04-091-15/+4
| | | | | | encoding. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3209 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Enable mp3 audio tracks in mp4.dynaflash2010-04-081-0/+3
| | | | | | | - NOTE: Currently not supported by any native apple software including QuickTime even with Perian enabled (obviously applies to iPhone/iPod iPad afaik or really anything). - Is supported by VLC and MPlayer on Mac. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3208 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Fix issue when selecting a preset with multiple audio tracks (ie. ↵dynaflash2010-04-061-1/+14
| | | | | | | | | AppleTV preset) any track after the first track used the first source track which would cause track mismatches. Now if the first track is set to use source track 3 for instance, the seond track will use source track 3 as well. - Fixes issue where the AppleTv Preset would use a different source track for its AC3 track than the first aac track on some multiple track sources. - Addresses the bug explained here http://forum.handbrake.fr/viewtopic.php?f=12&t=15854 git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3202 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Remove a bunch of useless comments from the point a to b code.dynaflash2010-04-021-17/+5
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3188 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Remove the AC3 and DCA audio input codec limitations for selecting ↵dynaflash2010-04-021-8/+2
| | | | | | mono or more importantly 6 channel discrete as per svn rev 3182. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3184 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Fix crash where a source with no audio crashes the macgui.dynaflash2010-03-261-17/+36
| | | | | | - If no source audio is found, set track 1 to None and disable controls. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3172 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Add call to hb_global_close() upon application termination as per ↵dynaflash2010-03-261-1/+3
| | | | | | | | changes in rev 3170 - Also added a missing call to hb_close for the live preview encoding instance git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3171 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Fix pending encodes left in queue at quit warning that was borked in ↵dynaflash2010-03-091-9/+1
| | | | | | | | 3154. - applicationShouldTerminate was trying to call a method that was removed in that revision which then aborted the rest of the shutdown logic. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3155 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Fix issue where closing the main window, then clicking on the dock ↵dynaflash2010-03-051-1/+2
| | | | | | | | icon did not make the main window reappear. - Note: this does not fix the issue in snow leopard where minimizing the main window behind the dock icon does not reappear when dock icon is clicked. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3152 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Audio fixes regarding CoreAudio as default.dynaflash2010-02-231-60/+26
| | | | | | | | | | | | | | - Base Patch by Rodeo, thanks Rodeo! -- Puts CoreAudo at index 0 in the encoder popup to assure it is selected by default if no preset is applied. -- Fixes issue where going to AC3 or DTS Passthru then back to aac chose faac even if the old "Use CoreAudo instead of FAAC" pref was in effect. -- Removes some legacy AVI/OGM Code. - Additional features added after Base Patch: -- "Use CoreAudio instead of FAAC" preference is now only applied to the built in presets --- This change means that a custom preset specifying faac is now respected instead of it being overridden by the previously global preference. --- Xib description changed accordingly --- Note this means that previous custom presets that used faac will now use it instead of coreaudio. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3138 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Fix package default name types broken when batch scanning was ↵dynaflash2010-02-121-7/+5
| | | | | | | | introduced. - eg., .eyetv scans now produce a proper default output file name. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3116 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Queue edit rescan fix for multiple title sourcesdynaflash2010-02-121-2/+4
| | | | | | - Do not try to set the title popup to the original title number since its a single title rescan. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3115 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: uncomment line commented for testing for editing queue item modulus ↵dynaflash2010-02-111-1/+1
| | | | | | from commit 3113 git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3114 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Adjustable picture modulus: Base patch by BradleyS, Thanks BradleyS!dynaflash2010-02-111-7/+25
| | | | | | | - Enables setting modulus for all anamorphic modes (including non-anamorphic) except strict. The job variable "anamorphic.modulus" is repurposed for this and is renamed to simply "modulus" - Other changes: Increases minimum output dimensions to 32x32 pixels in libhb (prevents possible crashes, notably in macgui). Better crop value and maximum crop value calculations to prevent crashes. Some code optimization / refactoring. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3113 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Get rid of % read out in constant quality mode. Now displays rf only.dynaflash2010-02-081-7/+2
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3104 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Fix issue with six channel discreet presets where no bitrate was ↵dynaflash2010-02-051-1/+9
| | | | | | chosen thereby borking the encode among other things. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3095 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Queue Edit uncomment remove reloaded queue item since "somehow" I ↵dynaflash2010-01-221-2/+2
| | | | | | missed it on the first go round. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3082 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Queued item editing initial implementation.dynaflash2010-01-211-237/+366
| | | | | | | | | - Sends a chosen queued item back to the main window for reload ( and rescan ) via contextual menu (right click) - Deletes queued item from queue after being reloaded to main window ( after editing or whatever, send back to queue via Add To Queue Button same as a new source). - New queue window contextual menu also includes delete and show options previously only available via separate icons. - Note: Needs testing particularly in the subtitle area, which is not to say there aren't other bugs. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3080 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Add the ability to send the finished encode to any application the ↵dynaflash2010-01-121-3/+9
| | | | | | | | | | user chooses instead of just "Send to MetaX". - Retains a checkbox to acivate sending the finished encode - Adds a file name textfield and a browse button so user can choose the app to send the finished encode to. - Defaults to MetaX as this would be the only app already existing in the users prefs. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3068 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Remove other errant subtitle log line for sub title tracks.dynaflash2010-01-121-2/+0
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3067 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: remove errant subtitle track log mssg that was broken anyway.dynaflash2010-01-121-3/+1
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3066 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Fix source duration display format when using time or frame based ↵dynaflash2010-01-041-2/+2
| | | | | | encoding. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3054 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Interface changes to allow pts or frame based point to point ↵dynaflash2009-12-231-8/+242
| | | | | | encoding on top of our existing chapters based encoding. ... Based upon jstebbins most excellent work. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3042 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Fix subtitle code in Live Preview that borked Live Preview encodes ↵dynaflash2009-12-161-4/+2
| | | | | | which was broken in svn 3024. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3032 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Fix issue with subtitle changes affecting all encodes in the queue ↵dynaflash2009-12-101-2/+2
| | | | | | | | by being less stupid. - Thanks to Rodeo for bringing it to my attention. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3024 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: fix vlc detection so that "Scan Anyway" works correctly ... patch by ↵dynaflash2009-11-261-4/+6
| | | | | | j45. Thanks John! git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2984 b64f7644-9d1e-0410-96f1-a4d463321fa5
* batch file scanning and scan canceljstebbins2009-11-251-9/+72
| | | | | | | | | | When a directory is specified as the source, first we attempt to open as a dvd, then if that fails, we attempt to open each file in the directory as a stream source. Since opening a large directory of files can take a really long time, you can also now cancel a scan. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2980 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Add check for audio == null for > 1 audio track to prevent crash for ↵dynaflash2009-11-221-1/+1
| | | | | | | | | | > 1 audio tracks and sources with no decodable audio. - Thanks to BradleyS for bug report. - Thanks to J45 for sussing the issue. - Addresses http://forum.handbrake.fr/viewtopic.php?f=12&t=13149 git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2953 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Trigger "Open Source Title Specific" if the option key is held down ↵dynaflash2009-11-211-1/+1
| | | | | | | | when clicking "Open" in the source browse window. - This has the same effect as choosing Open Source Title Specific from the file menu, which still exists. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2951 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Change the subme=1 option in turbo first pass to subme=2 as per x264 ↵dynaflash2009-11-201-1/+1
| | | | | | dev Dark_Shikari. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2948 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Remove vestigial conditional which did not allow loose anamorphic if ↵dynaflash2009-11-181-11/+1
| | | | | | | | | the ffmpeg video encoder was used. - Patch by Rodeo. Thanks Rodeo! - Addresses http://forum.handbrake.fr/viewtopic.php?f=4&t=13117 git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2943 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: change the min and max bitrate for faac six channel discrete encodes.dynaflash2009-11-181-4/+4
| | | | | | | - Patch by Rodeo so its his fault. ;) - Addresses http://forum.handbrake.fr/viewtopic.php?f=4&t=13114 git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2942 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Make sure that drc is set to 0 by default (not just in the built in ↵dynaflash2009-11-051-5/+5
| | | | | | | | presets). Patch by Rodeo. - Update the queue readout to only display "Off" for drc when the drc is 0.0 instead of 1.0 ( our previous off ). git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2915 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Fix the RF and QP labels in the constant quality slider when ↵dynaflash2009-11-021-1/+2
| | | | | | | | switching between video encoders. Patch by Rodeo. - http://forum.handbrake.fr/viewtopic.php?f=4&t=12838 git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2909 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Fix bug in encoding custom anamorphic with modulus other than 16. ↵dynaflash2009-10-231-0/+4
| | | | | | Patch by Rodeo. Thanks. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2896 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: fix borked previous commit 2891dynaflash2009-10-191-11/+1
| | | | | | - thanks Rodeo. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2892 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: make crf default for x264dynaflash2009-10-191-6/+1
| | | | | | - this removes the optional preference and no longer sets job->crf = 1; git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2890 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: In presets with an audio track specified for pass thru ( either AC3 ↵dynaflash2009-10-091-60/+102
| | | | | | | | | | or DTS ) prevent a mixdown in any track besides track one. - If pass thru is specified in any track > track 1in the preset, set that track to "None" if a matching source codec cannot be found. - Still allow track 1 to mixdown if a matching source track codec is not present. Prevents accidental encodes with no audio. - Among other things prevents a duplication of tracks with an aac mixdown for the AppleTV preset when using a source with audio other than AC3. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2876 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Do not allow Start or Add to Queue during source scanning.dynaflash2009-10-081-0/+5
| | | | | | - Avoids a crash when trying to add to queue or start during a scan. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2874 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Allow and check for 64 bit vlc. Match HandBrake architecture to VLC ↵dynaflash2009-09-241-25/+115
| | | | | | | | | architecture and warn appropriately. - This allows 64 bit HB and 64 bit vlc to work harmoniously. - No vlc and architecture mistmatches link to http://www.videolan.org/vlc/download-macosx.html instead of the main vlc page where only the 32 bit version of vlc is listed for download for mac. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2837 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: replace deprecated -stringWithCString with -stringWithUTF8String.dynaflash2009-09-161-21/+21
| | | | | | | - Quites down some compiler warnings in 10.6 git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2827 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: fix eyetv package scanning borked by Snow Leopard.dynaflash2009-09-151-1/+1
| | | | | | - tested on leopard by ncbp_ on irc (thanks). git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2826 b64f7644-9d1e-0410-96f1-a4d463321fa5