diff options
Diffstat (limited to 'libvo/mga_common.c')
-rw-r--r-- | libvo/mga_common.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libvo/mga_common.c b/libvo/mga_common.c index 193569fdf0..cb376587ce 100644 --- a/libvo/mga_common.c +++ b/libvo/mga_common.c @@ -421,7 +421,10 @@ static uint32_t preinit(const char *vo_subdevice) } #ifdef VO_XMGA - if (!vo_init()) return -1; + if (!vo_init()) { + close(f); + return -1; + } #endif return 0; |