Mercurial > mplayer.hg
comparison libvo/vo_fbdev2.c @ 11055:497104408c30
correct handling of subdevice, -fb device is obsoleted
author | alex |
---|---|
date | Wed, 08 Oct 2003 10:58:44 +0000 |
parents | 7436a53876b0 |
children | ec3dac7d17a0 |
comparison
equal
deleted
inserted
replaced
11054:bbe74a48483f | 11055:497104408c30 |
---|---|
189 fb_dev_fd = -1; | 189 fb_dev_fd = -1; |
190 fb_err = -1; | 190 fb_err = -1; |
191 return -1; | 191 return -1; |
192 } | 192 } |
193 | 193 |
194 static uint32_t preinit(const char *ignore) | 194 static uint32_t preinit(const char *subdevice) |
195 { | 195 { |
196 if (subdevice) | |
197 { | |
198 if (fb_dev_name) free(fb_dev_name); | |
199 fb_dev_name = strdup(subdevice); | |
200 } | |
196 return fb_preinit(0); | 201 return fb_preinit(0); |
197 } | 202 } |
198 | 203 |
199 static uint32_t config(uint32_t width, uint32_t height, uint32_t d_width, | 204 static uint32_t config(uint32_t width, uint32_t height, uint32_t d_width, |
200 uint32_t d_height, uint32_t flags, char *title, | 205 uint32_t d_height, uint32_t flags, char *title, |