Mercurial > mplayer.hg
comparison libvo/vo_fbdev.c @ 35117:91a3927fd02e
More helpful error message when video does not fit into frame buffer.
author | reimar |
---|---|
date | Sat, 22 Sep 2012 21:36:27 +0000 |
parents | 66f91ad84f3a |
children | edd8273dc025 |
comparison
equal
deleted
inserted
replaced
35116:af49d14bc126 | 35117:91a3927fd02e |
---|---|
860 if (vm || fs) { | 860 if (vm || fs) { |
861 out_width = fb_xres; | 861 out_width = fb_xres; |
862 out_height = fb_yres; | 862 out_height = fb_yres; |
863 } | 863 } |
864 if (out_width < in_width || out_height < in_height) { | 864 if (out_width < in_width || out_height < in_height) { |
865 mp_msg(MSGT_VO, MSGL_ERR, "screensize is smaller than video size\n"); | 865 mp_msg(MSGT_VO, MSGL_ERR, "screensize %ix%i is smaller than video size %ix%i\n", |
866 out_width, out_height, in_width, in_height); | |
866 return 1; | 867 return 1; |
867 } | 868 } |
868 | 869 |
869 first_row = (out_height - in_height) / 2; | 870 first_row = (out_height - in_height) / 2; |
870 last_row = (out_height + in_height) / 2; | 871 last_row = (out_height + in_height) / 2; |