[vlc-commits] [Git][videolan/libvlcpp][master] Remove interface spawning in 4.0

Steve Lhomme (@robUx4) gitlab at videolan.org
Tue Feb 6 09:31:53 UTC 2024



Steve Lhomme pushed to branch master at VideoLAN / libvlcpp


Commits:
44c1f48e by Alaric Senat at 2024-02-06T10:09:37+01:00
Remove interface spawning in 4.0

The possibility of spawning main interfaces after the start of libvlc
was removed in VLC 4.0.

Ref videolan/vlc!4865

- - - - -


2 changed files:

- test/main.cpp
- vlcpp/Instance.hpp


Changes:

=====================================
test/main.cpp
=====================================
@@ -45,9 +45,11 @@ int main(int ac, char** av)
         std::cout << "Found SD: " << sd.name() << "(" << sd.longName() << ")" << std::endl;
 #endif
 
+#if LIBVLC_VERSION_INT < LIBVLC_VERSION(4, 0, 0, 0)
     instance.setExitHandler([] {
         std::cout << "Libvlc is exiting" << std::endl;
     });
+#endif
 
     instance.logSet([](int lvl, const libvlc_log_t*, std::string message ) {
         std::cout << "Hooked VLC log: " << lvl << ' ' << message << std::endl;


=====================================
vlcpp/Instance.hpp
=====================================
@@ -144,6 +144,7 @@ public:
     }
 
 
+#if LIBVLC_VERSION_INT < LIBVLC_VERSION(4, 0, 0, 0)
     /**
      * Try to start a user interface for the libvlc instance.
      *
@@ -177,6 +178,7 @@ public:
             CallbackWrapper<(unsigned int)CallbackIdx::Exit, void(*)(void*)>::wrap( *m_callbacks, std::forward<ExitCb>( exitCb ) ),
             m_callbacks.get() );
     }
+#endif
 
     /**
      * Sets the application name. LibVLC passes this as the user agent string



View it on GitLab: https://code.videolan.org/videolan/libvlcpp/-/commit/44c1f48e56a66c3f418175af1e1ef3fd1ab1b118

-- 
View it on GitLab: https://code.videolan.org/videolan/libvlcpp/-/commit/44c1f48e56a66c3f418175af1e1ef3fd1ab1b118
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list