]> git.sesse.net Git - vlc/commitdiff
Fix libvlc_video_get_(height|width) inversion
authorRémi Denis-Courmont <remi@remlab.net>
Wed, 30 Nov 2011 17:58:26 +0000 (19:58 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Wed, 30 Nov 2011 17:59:03 +0000 (19:59 +0200)
Both functions remain broken regardless.

Reported-by: Yann Le Hir <yann.lehir@gmail.com>
lib/video.c

index 6e1ea06966fe10506e667d03426e69f35334e902..b659c8809e91fbf11fd3f15de7972d8ddcec9415 100644 (file)
@@ -177,18 +177,18 @@ int libvlc_video_get_size( libvlc_media_player_t *p_mi, unsigned num,
 
 int libvlc_video_get_height( libvlc_media_player_t *p_mi )
 {
-    unsigned height, width;
+    unsigned width, height;
 
-    if (libvlc_video_get_size (p_mi, 0, &height, &width))
+    if (libvlc_video_get_size (p_mi, 0, &width, &height))
         return 0;
     return height;
 }
 
 int libvlc_video_get_width( libvlc_media_player_t *p_mi )
 {
-    unsigned height, width;
+    unsigned width, height;
 
-    if (libvlc_video_get_size (p_mi, 0, &height, &width))
+    if (libvlc_video_get_size (p_mi, 0, &width, &height))
         return 0;
     return width;
 }