{"action":"created","issue":{"url":"https://api.github.com/repos/mpv-player/mpv/issues/2208","labels_url":"https://api.github.com/repos/mpv-player/mpv/issues/2208/labels{/name}","comments_url":"https://api.github.com/repos/mpv-player/mpv/issues/2208/comments","events_url":"https://api.github.com/repos/mpv-player/mpv/issues/2208/events","html_url":"https://github.com/mpv-player/mpv/issues/2208","id":99800889,"number":2208,"title":"Resizing window does not scale video (with vo_xv) while not paused","user":{"login":"lvml","id":9969397,"avatar_url":"https://avatars.githubusercontent.com/u/9969397?v=3","gravatar_id":"","url":"https://api.github.com/users/lvml","html_url":"https://github.com/lvml","followers_url":"https://api.github.com/users/lvml/followers","following_url":"https://api.github.com/users/lvml/following{/other_user}","gists_url":"https://api.github.com/users/lvml/gists{/gist_id}","starred_url":"https://api.github.com/users/lvml/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lvml/subscriptions","organizations_url":"https://api.github.com/users/lvml/orgs","repos_url":"https://api.github.com/users/lvml/repos","events_url":"https://api.github.com/users/lvml/events{/privacy}","received_events_url":"https://api.github.com/users/lvml/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-08-08T13:05:09Z","updated_at":"2015-08-08T13:24:01Z","closed_at":null,"body":"I'm experiencing a strange little bug with mpv compiled from current git head:\r\n\r\nWhen I resize a (non-fullscreen) mpv window while a video is playing, often (about 8 out of 10 times) mpv does not seem to take notice of this and does not scale the video, so after enlarging the window only the upper left area of it is used, after decreasing the window size only the upper left part of the video is visible in the then-too-small window.\r\n\r\nIf I pause the replay and do the same window resizing, mpv always scales the video to the size of the window. \r\n\r\nThe environment: linux-4.1, fvwm2, vo_xv (no hardware accelleration available on that computer).\r\nI have not experienced this bug on two other computers running the same operating system, kernel and window manager, but using other vo's (so vo_opengl and vo_vdpau do not exhibit the symptom).\r\n\r\nAny idea how to debug/fix this?"},"comment":{"url":"https://api.github.com/repos/mpv-player/mpv/issues/comments/128980624","html_url":"https://github.com/mpv-player/mpv/issues/2208#issuecomment-128980624","issue_url":"https://api.github.com/repos/mpv-player/mpv/issues/2208","id":128980624,"user":{"login":"lvml","id":9969397,"avatar_url":"https://avatars.githubusercontent.com/u/9969397?v=3","gravatar_id":"","url":"https://api.github.com/users/lvml","html_url":"https://github.com/lvml","followers_url":"https://api.github.com/users/lvml/followers","following_url":"https://api.github.com/users/lvml/following{/other_user}","gists_url":"https://api.github.com/users/lvml/gists{/gist_id}","starred_url":"https://api.github.com/users/lvml/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lvml/subscriptions","organizations_url":"https://api.github.com/users/lvml/orgs","repos_url":"https://api.github.com/users/lvml/repos","events_url":"https://api.github.com/users/lvml/events{/privacy}","received_events_url":"https://api.github.com/users/lvml/received_events","type":"User","site_admin":false},"created_at":"2015-08-08T13:24:01Z","updated_at":"2015-08-08T13:24:01Z","body":"When using --msg-level=vo=debug, the following is output when I resize the window while paused (which works fine):\r\n```\r\n[vo/xv] aspect(0) fitin: 970x776 monitor_par: 1.00\r\n[vo/xv] aspect(1) wh: 970x776 (org: 720x576)\r\n[vo/xv] aspect(2) wh: 970x776 (org: 720x576)\r\n[vo/xv] Window size: 970x776\r\n[vo/xv] Video source: 720x576 (720x576)\r\n[vo/xv] Video display: (0, 0) 720x576 -> (0, 0) 970x776\r\n[vo/xv] Video scale: 1.347222/1.347222\r\n[vo/xv] OSD borders: l=0 t=0 r=0 b=0\r\n[vo/xv] Video borders: l=0 t=0 r=0 b=0\r\n[vo/xv] xv_get_eq called! (bt_709, -100)\r\n```\r\n\r\nWhen I do the same while the video plays, there is no such output - nothing is emitted on the command line, and the video is not scaled (so it seems mpv is really \"just not taking notice\" of the window resize).\r\n\r\nBut I noticed one more thing: Several actions that I can do on the window (not only resizing, also moving and alike) cause the following message to be emitted (but only once for each mpv run):\r\n```\r\n[vo/xv] X11 can't keep up! Waiting for XShm completion events...\r\n```\r\nCould this be some timing issue? However, the low-resolution video I replayed in the example does not really put stress on the system..."}}