[vlc-commits] Fix libvlc_video_get_(height|width) inversion
Rémi Denis-Courmont
git at videolan.org
Wed Nov 30 19:02:46 CET 2011
vlc/vlc-1.2 | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Nov 30 19:58:26 2011 +0200| [c7599bf5efed470a4b2dae1304050195190edc47] | 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>
(cherry picked from commit 5458760b3fb59051cfd622c19898fbe63cafc79a)
> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.2.git/?a=commit;h=c7599bf5efed470a4b2dae1304050195190edc47
---
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