[vlc-commits] vdpau: catch display preemption error

Rémi Denis-Courmont git at videolan.org
Sun Jul 7 20:13:43 CEST 2013


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Jul  2 18:43:17 2013 +0300| [3c778bde238495d970220cdc0b5c4f3716a21e65] | committer: Rémi Denis-Courmont

vdpau: catch display preemption error

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3c778bde238495d970220cdc0b5c4f3716a21e65
---

 modules/hw/vdpau/display.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/hw/vdpau/display.c b/modules/hw/vdpau/display.c
index 68d8462..37306f8 100644
--- a/modules/hw/vdpau/display.c
+++ b/modules/hw/vdpau/display.c
@@ -237,6 +237,8 @@ static void Queue(vout_display_t *vd, picture_t *pic, subpicture_t *subpic)
     {
         msg_Err(vd, "presentation queue time failure: %s",
                 vdp_get_error_string(sys->vdp, err));
+        if (err == VDP_STATUS_DISPLAY_PREEMPTED)
+            vout_display_SendEventPicturesInvalid(vd);
         return;
     }
 



More information about the vlc-commits mailing list