diff options
author | alex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-10-08 10:58:44 +0000 |
---|---|---|
committer | alex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-10-08 10:58:44 +0000 |
commit | 4efe868ed86f13561428f5d67863b39bd229584c (patch) | |
tree | 469dec69c86cc8c08b61332cee50cf41fa06c602 /libvo/vo_fbdev2.c | |
parent | 3edd4f649d8f7bb886ebfa385886058833c519e7 (diff) | |
download | mpv-4efe868ed86f13561428f5d67863b39bd229584c.tar.bz2 mpv-4efe868ed86f13561428f5d67863b39bd229584c.tar.xz |
correct handling of subdevice, -fb device is obsoleted
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11056 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/vo_fbdev2.c')
-rw-r--r-- | libvo/vo_fbdev2.c | 7 |
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); } |