[vlc-commits] Fix libvlc_video_get_(height|width) inversion

Rémi Denis-Courmont git at videolan.org
Wed Nov 30 18:59:51 CET 2011


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Nov 30 19:58:26 2011 +0200| [5458760b3fb59051cfd622c19898fbe63cafc79a] | committer: Rémi Denis-Courmont

Fix libvlc_video_get_(height|width) inversion

Both functions remain broken regardless.

Reported-by: Yann Le Hir <yann.lehir at gmail.com>

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

 lib/video.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/lib/video.c b/lib/video.c
index 6e1ea06..b659c88 100644
--- a/lib/video.c
+++ b/lib/video.c
@@ -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;
 }



More information about the vlc-commits mailing list