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

MediaPlayerCX: Move from addSubtitle to addSlave

parent d2b2ca9a
......@@ -403,9 +403,9 @@ namespace libVLCX
return m_mp.setSpu(i_spu);
}
int MediaPlayer::setSubtitleFile(Platform::String^ psz_subtitle)
bool MediaPlayer::addSlave(SlaveType type, Platform::String^ uri)
{
return m_mp.setSubtitleFile(VLCString(psz_subtitle));
return m_mp.addSlave(static_cast<VLC::MediaSlave::Type>(type), VLCString(uri));
}
int64_t MediaPlayer::spuDelay()
......
......@@ -855,14 +855,7 @@ namespace libVLCX
*/
int setSpu(int i_spu);
/**
* Set new video subtitle file.
*
* \param psz_subtitle new video subtitle file
*
* \return the success status (boolean)
*/
int setSubtitleFile(Platform::String^ psz_subtitle);
bool addSlave(SlaveType type, Platform::String^ uri);
/**
* Get the current subtitle delay. Positive values means subtitles are
......
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