[vlc-commits] [Git][videolan/libvlcpp][master] 2 commits: MediaPlayer: Fix double media retain

Geoffrey Métais gitlab at videolan.org
Fri Oct 27 17:29:38 CEST 2017


Geoffrey Métais pushed to branch master at videolan / libvlcpp


Commits:
45de4234 by Hugo Beauzée-Luyssen at 2017-10-27T17:28:07+02:00
MediaPlayer: Fix double media retain

Signed-off-by: Geoffrey Métais <geoffrey.metais at gmail.com>

- - - - -
bd40b4a1 by Hugo Beauzée-Luyssen at 2017-10-27T17:28:13+02:00
Remove trailing whitespace

Signed-off-by: Geoffrey Métais <geoffrey.metais at gmail.com>

- - - - -


2 changed files:

- vlcpp/MediaPlayer.hpp
- vlcpp/structures.hpp


Changes:

=====================================
vlcpp/MediaPlayer.hpp
=====================================
--- a/vlcpp/MediaPlayer.hpp
+++ b/vlcpp/MediaPlayer.hpp
@@ -127,7 +127,7 @@ public:
         auto media = libvlc_media_player_get_media(*this);
         if ( media == nullptr )
             return nullptr;
-        return std::make_shared<Media>( media, true );
+        return std::make_shared<Media>( media, false );
     }
 
     /**
@@ -1690,7 +1690,7 @@ public:
 
     bool updateViewpoint( const VideoViewpoint& viewpoint, bool b_absolute )
     {
-        return libvlc_video_update_viewpoint( *this, 
+        return libvlc_video_update_viewpoint( *this,
             static_cast<const libvlc_video_viewpoint_t*>( &viewpoint ), b_absolute ) == 0;
     }
 


=====================================
vlcpp/structures.hpp
=====================================
--- a/vlcpp/structures.hpp
+++ b/vlcpp/structures.hpp
@@ -652,7 +652,7 @@ public:
 
 
 ///
-/// \brief C++ Type wrapper for libvlc_video_viewpoint_t 
+/// \brief C++ Type wrapper for libvlc_video_viewpoint_t
 ///
 class VideoViewpoint : public libvlc_video_viewpoint_t
 {



View it on GitLab: https://code.videolan.org/videolan/libvlcpp/compare/eb8dca85f888053eb7b25a2cf4db74bbae5180ca...bd40b4a1958397e4eb25072da6b324e89c953a50

---
View it on GitLab: https://code.videolan.org/videolan/libvlcpp/compare/eb8dca85f888053eb7b25a2cf4db74bbae5180ca...bd40b4a1958397e4eb25072da6b324e89c953a50
You're receiving this email because of your account on code.videolan.org.


More information about the vlc-commits mailing list