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

VLCMedia: Add convenience methods

parent 1b71a279
......@@ -48,6 +48,11 @@ Media::addOption( const char* opt )
libvlc_media_add_option_flag( m_internalPtr, opt, libvlc_media_option_trusted );
}
void Media::addOption(const QString &opt)
{
libvlc_media_add_option_flag( m_internalPtr, opt.toLocal8Bit(), libvlc_media_option_trusted );
}
void
Media::setVideoLockCallback( void* callback )
{
......
......@@ -38,6 +38,7 @@ namespace LibVLCpp
Media( const QString& filename );
~Media();
void addOption( const char* opt );
void addOption( const QString& opt );
void setVideoLockCallback( void* );
void setVideoUnlockCallback( void* );
void setAudioLockCallback( void* );
......
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