Commit 17f44627 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

MediaPlayer: Allow deinterlace to be disabled

parent d598cad6
......@@ -1469,11 +1469,12 @@ public:
/**
* Enable or disable deinterlace filter
*
* \param psz_mode type of deinterlace filter, NULL to disable
* \param psz_mode type of deinterlace filter, empty string to disable
*/
void setDeinterlace(const std::string& psz_mode)
void setDeinterlace(const std::string& mode)
{
libvlc_video_set_deinterlace(*this, psz_mode.c_str());
libvlc_video_set_deinterlace(*this,
mode.empty() ? NULL : mode.c_str());
}
/**
......
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