[vlmc-devel] VLCMedia: Add convenience methods

Hugo Beauzée-Luyssen git at videolan.org
Sun Sep 2 13:37:35 CEST 2012


vlmc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Sun Sep  2 10:01:24 2012 +0300| [b284fcb97091e7fbfe98e10179c6c645a962d61a] | committer: Hugo Beauzée-Luyssen

VLCMedia: Add convenience methods

> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=b284fcb97091e7fbfe98e10179c6c645a962d61a
---

 src/LibVLCpp/VLCMedia.cpp |    5 +++++
 src/LibVLCpp/VLCMedia.h   |    1 +
 2 files changed, 6 insertions(+)

diff --git a/src/LibVLCpp/VLCMedia.cpp b/src/LibVLCpp/VLCMedia.cpp
index f4233a7..5586e3e 100644
--- a/src/LibVLCpp/VLCMedia.cpp
+++ b/src/LibVLCpp/VLCMedia.cpp
@@ -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 )
 {
diff --git a/src/LibVLCpp/VLCMedia.h b/src/LibVLCpp/VLCMedia.h
index 7896795..d7cb0d7 100644
--- a/src/LibVLCpp/VLCMedia.h
+++ b/src/LibVLCpp/VLCMedia.h
@@ -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* );



More information about the Vlmc-devel mailing list