Added default video quality preference.
Fixed small bug in format selection code.