Commit 333b3ea4 authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

libvlc_video_set_viewport: No need to check playlist status.

parent e315c9b4
......@@ -312,8 +312,6 @@ void libvlc_video_set_viewport( libvlc_instance_t *p_instance,
var_SetInteger( p_instance->p_libvlc_int, "drawable-clip-bottom", clip->bottom );
var_SetInteger( p_instance->p_libvlc_int, "drawable-clip-right", clip->right );
if( libvlc_playlist_isplaying(p_instance, p_e) )
{
libvlc_media_player_t *p_mi = libvlc_playlist_get_media_player(p_instance, p_e);
if( p_mi )
{
......@@ -328,7 +326,6 @@ void libvlc_video_set_viewport( libvlc_instance_t *p_instance,
}
libvlc_media_player_release(p_mi);
}
}
}
char *libvlc_video_get_aspect_ratio( libvlc_media_player_t *p_mi,
......
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