vo: fix crash if all VO open fallback attempts fail
commitc183fbce263209bad765ad43395d9497c65cb091
authorUoti Urpala <uau@mplayer2.org>
Sat, 25 Aug 2012 20:25:26 +0000 (25 23:25 +0300)
committerUoti Urpala <uau@mplayer2.org>
Fri, 31 Aug 2012 17:30:42 +0000 (31 20:30 +0300)
tree9fd589a98b7f753279bf0ebda860c4d452760223
parent5639702953bb7d4321db822fc55e4272148ededa
vo: fix crash if all VO open fallback attempts fail

If init_best_video_out() code tried to open every available VO in turn
but all failed, the final code returning failure incorrectly used
free() instead of talloc_free(), triggering a crash. Fix. Also fix a
minor memory leak after failure to open user-specified VO(s) without
fallback, and remove no longer necessary vo_subdevice hacks.
libvo/video_out.c
libvo/video_out.h