[vlc-commits] medialibrary: fix callback type

Steve Lhomme git at videolan.org
Thu Jul 25 07:20:05 CEST 2019


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Thu Jul 25 07:18:11 2019 +0200| [b760fa4b7232130c34402cf612dcbdf618b3c0cc] | committer: Steve Lhomme

medialibrary: fix callback type

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

 modules/misc/medialibrary/medialib.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/misc/medialibrary/medialib.cpp b/modules/misc/medialibrary/medialib.cpp
index f19579d14f..1c7dc6ef08 100644
--- a/modules/misc/medialibrary/medialib.cpp
+++ b/modules/misc/medialibrary/medialib.cpp
@@ -1413,8 +1413,9 @@ static int Open( vlc_object_t* obj )
     return VLC_SUCCESS;
 }
 
-static void Close( vlc_medialibrary_module_t* module )
+static void Close( vlc_object_t* obj )
 {
+    vlc_medialibrary_module_t *module = reinterpret_cast<vlc_medialibrary_module_t*>( obj );
     MediaLibrary* p_ml = static_cast<MediaLibrary*>( module->p_sys );
     delete p_ml;
 }



More information about the vlc-commits mailing list