[vlc-commits] [Git][videolan/libvlcpp][master] MediaPlayer: Update addSlave prototype

Hugo Beauzée-Luyssen gitlab at videolan.org
Wed Jun 8 10:57:27 CEST 2016


Hugo Beauzée-Luyssen pushed to branch master at videolan / libvlcpp


Commits:
a6c6573a by Hugo Beauzée-Luyssen at 2016-06-08T10:57:16+02:00
MediaPlayer: Update addSlave prototype

- - - - -


1 changed file:

- vlcpp/MediaPlayer.hpp


Changes:

=====================================
vlcpp/MediaPlayer.hpp
=====================================
--- a/vlcpp/MediaPlayer.hpp
+++ b/vlcpp/MediaPlayer.hpp
@@ -1671,13 +1671,14 @@ public:
      *
      * \param type subtitle or audio
      * \param uri Uri of the slave (should contain a valid scheme).
+     * \param select True if this slave should be selected when it's loaded
      *
      * \return true on success, false on error.
      */
-    bool addSlave( MediaSlave::Type type, const std::string& uri )
+    bool addSlave( MediaSlave::Type type, const std::string& uri, bool select )
     {
         return libvlc_media_player_add_slave( *this,
-                        static_cast<libvlc_media_slave_type_t>( type ), uri.c_str() ) == 0;
+                        static_cast<libvlc_media_slave_type_t>( type ), uri.c_str(), select ) == 0;
     }
 
 #endif



View it on GitLab: https://code.videolan.org/videolan/libvlcpp/commit/a6c6573aea233888d2553bb1f1cec17ee20e5016
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-commits/attachments/20160608/b453c2d4/attachment-0001.html>


More information about the vlc-commits mailing list