summaryrefslogtreecommitdiffstats
path: root/libvo/vo_xv.c
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-11-15 18:56:25 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-11-15 18:56:25 +0000
commit4b9ee2e2063f8d0a56288cb9d1aa8b35e640600b (patch)
treeb871040755c18ef882d0f8d0fcc46bcec7e31ba1 /libvo/vo_xv.c
parentc8d9e2eb60e942009c35270b97045e84e74dd5d5 (diff)
downloadmpv-4b9ee2e2063f8d0a56288cb9d1aa8b35e640600b.tar.bz2
mpv-4b9ee2e2063f8d0a56288cb9d1aa8b35e640600b.tar.xz
Simplify vo_vm_switch and vo_vm_close, everyone was using the (almost) same
boiler-plate code with them, just with different bugs. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27924 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/vo_xv.c')
-rw-r--r--libvo/vo_xv.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/libvo/vo_xv.c b/libvo/vo_xv.c
index d557838738..302d98f1b2 100644
--- a/libvo/vo_xv.c
+++ b/libvo/vo_xv.c
@@ -232,17 +232,7 @@ static int config(uint32_t width, uint32_t height, uint32_t d_width,
#ifdef CONFIG_XF86VM
if (vm)
{
- if ((d_width == 0) && (d_height == 0))
- {
- vm_width = image_width;
- vm_height = image_height;
- } else
- {
- vm_width = d_width;
- vm_height = d_height;
- }
- vo_vm_switch(vm_width, vm_height, &modeline_width,
- &modeline_height);
+ vo_vm_switch();
} else
#endif
XGetWindowAttributes(mDisplay, DefaultRootWindow(mDisplay),
@@ -659,7 +649,7 @@ static void uninit(void)
for (i = 0; i < num_buffers; i++)
deallocate_xvimage(i);
#ifdef CONFIG_XF86VM
- vo_vm_close(mDisplay);
+ vo_vm_close();
#endif
mp_input_rm_event_fd(ConnectionNumber(mDisplay));
vo_x11_uninit();