Files
Velix-MPV-Core/libvo
Uoti Urpala 3c70c5dc95 vo_vdpau: Fix X event handling bugs
check_events() first checked for a RESIZE event and called resize() if
needed, and then queued a frame to be reshown if in pause state and
the event was either RESIZE or EXPOSE. The most obvious problems with
the code were:
   - resize() already called flip_page() internally, so the code in
     check_events could lead to _two_ frames being queued.
   - The call in resize() didn't depend on pause status, so the
     behavior was inconsistent.
   - The code in check_events() actually queued the wrong output
     surface. It showed the same surface as flip_page() would show
     _next_, while it should have shown the previously shown one. This
     typically led to the screen contents changing to a previous
     state, as the new surface had not been initialized and had
     contents from a previous use.

Fix the double update. Make resize() also only immediately update the
video if paused (this also affects changing to/from fullscreen) and
otherwise leave the old window contents be until the next frame. Queue
the right frame in check_events(). Also make resize() a bit more
careful to only show contents if they were successfully updated
(though a case where we're paused without content to show shouldn't
normally happen).
2009-09-19 00:00:42 +03:00
..
2009-02-12 04:17:55 +02:00
2009-07-07 02:56:01 +03:00
2009-07-07 21:49:42 +03:00
2009-04-01 02:43:47 +03:00
2009-02-12 04:17:55 +02:00
2008-09-10 23:59:08 +03:00
2009-07-07 02:56:01 +03:00
2009-07-07 21:49:42 +03:00
2009-07-07 21:49:42 +03:00
2009-07-07 21:49:42 +03:00
2009-07-07 21:49:42 +03:00
2009-07-07 02:56:01 +03:00
2009-02-12 04:17:55 +02:00
2009-07-07 21:49:42 +03:00
2009-04-01 02:43:47 +03:00
2009-07-29 01:32:03 +03:00
2009-07-29 01:32:03 +03:00
2009-09-19 00:00:42 +03:00
2008-11-25 21:12:01 +02:00
2009-07-29 01:32:03 +03:00
2009-07-07 21:49:42 +03:00
2009-07-07 21:49:42 +03:00
2009-07-07 21:49:42 +03:00
2009-07-07 21:49:42 +03:00
2009-01-15 05:57:31 +02:00
2008-09-10 23:59:08 +03:00
2009-07-07 21:49:42 +03:00