Commit 7602f030 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

MediaPlayer: Allow aspect ratio to be reinitialized

parent b0cf9c57
......@@ -1237,9 +1237,9 @@ public:
*
* \note Invalid aspect ratios are ignored.
*/
void setAspectRatio(const std::string& psz_aspect)
void setAspectRatio( const std::string& ar )
{
libvlc_video_set_aspect_ratio(*this,psz_aspect.c_str());
libvlc_video_set_aspect_ratio( *this, ar.size() > 0 ? ar.c_str() : nullptr );
}
/**
......
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