[vlmc-devel] VLCInstance: Add a binding for removing a log hook
Hugo Beauzée-Luyssen
git at videolan.org
Fri Feb 28 20:14:02 CET 2014
vlmc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Fri Feb 28 21:02:41 2014 +0200| [24b0958f047fcdaf9a5684de9ad3fa6f518dc5cc] | committer: Hugo Beauzée-Luyssen
VLCInstance: Add a binding for removing a log hook
> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=24b0958f047fcdaf9a5684de9ad3fa6f518dc5cc
---
src/Backend/VLC/LibVLCpp/VLCInstance.cpp | 5 +++++
src/Backend/VLC/LibVLCpp/VLCInstance.h | 1 +
2 files changed, 6 insertions(+)
diff --git a/src/Backend/VLC/LibVLCpp/VLCInstance.cpp b/src/Backend/VLC/LibVLCpp/VLCInstance.cpp
index 627c8d3..bb484b3 100644
--- a/src/Backend/VLC/LibVLCpp/VLCInstance.cpp
+++ b/src/Backend/VLC/LibVLCpp/VLCInstance.cpp
@@ -43,6 +43,11 @@ void
Instance::setLogHook( void* data, libvlc_log_cb hook )
{
libvlc_log_set( m_internalPtr, hook, data );
+}
+void
+Instance::unsetLogHook()
+{
+ libvlc_log_unset( *this );
}
diff --git a/src/Backend/VLC/LibVLCpp/VLCInstance.h b/src/Backend/VLC/LibVLCpp/VLCInstance.h
index 1028071..518be47 100644
--- a/src/Backend/VLC/LibVLCpp/VLCInstance.h
+++ b/src/Backend/VLC/LibVLCpp/VLCInstance.h
@@ -38,6 +38,7 @@ namespace LibVLCpp
Instance( int argc, const char** argv );
~Instance();
void setLogHook( void *data, libvlc_log_cb hook );
+ void unsetLogHook();
};
}
More information about the Vlmc-devel
mailing list