[vlc-commits] vdpau: return an error if resize needed

Rémi Denis-Courmont git at videolan.org
Tue Jan 15 18:23:47 CET 2019


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Jan 15 19:09:55 2019 +0200| [1d9b0e25ade1a1188ed0f0e9a59e7ab10bf8e72f] | committer: Rémi Denis-Courmont

vdpau: return an error if resize needed

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

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

diff --git a/modules/hw/vdpau/display.c b/modules/hw/vdpau/display.c
index b70e2f9814..3bf0475fcf 100644
--- a/modules/hw/vdpau/display.c
+++ b/modules/hw/vdpau/display.c
@@ -263,10 +263,7 @@ static int Control(vout_display_t *vd, int query, va_list ap)
         vout_display_PlacePicture(&place, &vd->source, cfg);
         if (place.width  != vd->fmt.i_visible_width
          || place.height != vd->fmt.i_visible_height)
-        {
-            vout_display_SendEventPicturesInvalid(vd);
-            return VLC_SUCCESS;
-        }
+            return VLC_EGENERIC;
 
         const uint32_t values[] = { place.x, place.y,
                                     place.width, place.height, };
@@ -280,8 +277,7 @@ static int Control(vout_display_t *vd, int query, va_list ap)
     case VOUT_DISPLAY_CHANGE_ZOOM:
     case VOUT_DISPLAY_CHANGE_SOURCE_ASPECT:
     case VOUT_DISPLAY_CHANGE_SOURCE_CROP:
-        vout_display_SendEventPicturesInvalid (vd);
-        return VLC_SUCCESS;
+        return VLC_EGENERIC;
     default:
         msg_Err(vd, "unknown control request %d", query);
         return VLC_EGENERIC;



More information about the vlc-commits mailing list