summaryrefslogtreecommitdiffstats
path: root/libvo/video_out.c
diff options
context:
space:
mode:
Diffstat (limited to 'libvo/video_out.c')
-rw-r--r--libvo/video_out.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libvo/video_out.c b/libvo/video_out.c
index c685cecddd..a958847568 100644
--- a/libvo/video_out.c
+++ b/libvo/video_out.c
@@ -328,8 +328,10 @@ struct vo *init_best_video_out(struct MPOpts *opts,
// continue...
free(name);
++vo_list;
- if (!(vo_list[0]))
+ if (!(vo_list[0])) {
+ talloc_free(vo);
return NULL; // do NOT fallback to others
+ }
}
// now try the rest...
vo_subdevice = NULL;