Commit c7599bf5 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Fix libvlc_video_get_(height|width) inversion

Both functions remain broken regardless.
Reported-by: default avatarYann Le Hir <yann.lehir@gmail.com>
(cherry picked from commit 5458760b3fb59051cfd622c19898fbe63cafc79a)
parent 5756daaf
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment