MacGUI: add a missing else statement. Don't pass key event down the response chain after we handled it it.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5237 b64f7644-9d1e-0410-96f1-a4d463321fa5
Prevent OSX ML sleep during encoding, thanks to Jerome Lacube

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5238 b64f7644-9d1e-0410-96f1-a4d463321fa5
MacGui: re enable deinterlaced still preview images when deinterlace is selected.
- Also add a deinterlaced preview still image when decomb is selected as libhb does not notice decomb for still previews. Do a quick shell game when decomb is selected only to grab a deinterlaced preview.
- As a side note, remove some extremely vestigial code from controller.m as far as a min preview size.
- fwiw, lingui already apparently does this.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5239 b64f7644-9d1e-0410-96f1-a4d463321fa5
Audio dithering.

Works with encoders that accept 16-bit signed integers as input (currently, only ffflac).

When supported, the default method is standard triangular.

CLI users can request a specific dither algorithm via the --adither option.



git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5241 b64f7644-9d1e-0410-96f1-a4d463321fa5
Set AVCodecContext.request_channel_layout when decoding.

Allows extracting a 5.1 or 2-channel downmix from a dedicated substream (TrueHD).

Also works around a bug when decoding TrueHD Mono.



git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5242 b64f7644-9d1e-0410-96f1-a4d463321fa5
WinGui: Fix the source display label for batch scan mode.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5244 b64f7644-9d1e-0410-96f1-a4d463321fa5
WinGui: A Stylecop cleanup pass on Interop Library.  Note, moved the Eventargs into their own package.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5248 b64f7644-9d1e-0410-96f1-a4d463321fa5
add --disable-sndfile to avoid build failure

- build fails on non-ancient OSX platforms if libsndfile is present
- low risk for all platforms as scope is limited to libsamplerate/examples/


git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5252 b64f7644-9d1e-0410-96f1-a4d463321fa5
WinGui: Split out the advanced tab code into separate panels.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5253 b64f7644-9d1e-0410-96f1-a4d463321fa5