summaryrefslogtreecommitdiffstats
path: root/libvo/vo_fbdev2.c
diff options
context:
space:
mode:
Diffstat (limited to 'libvo/vo_fbdev2.c')
-rw-r--r--libvo/vo_fbdev2.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/libvo/vo_fbdev2.c b/libvo/vo_fbdev2.c
index 40c901c77c..cf3681681e 100644
--- a/libvo/vo_fbdev2.c
+++ b/libvo/vo_fbdev2.c
@@ -191,8 +191,13 @@ err_out:
return -1;
}
-static uint32_t preinit(const char *ignore)
+static uint32_t preinit(const char *subdevice)
{
+ if (subdevice)
+ {
+ if (fb_dev_name) free(fb_dev_name);
+ fb_dev_name = strdup(subdevice);
+ }
return fb_preinit(0);
}