LibVLC 4.0 MacOS crash
Posted: 22 Apr 2022 15:32
Hi, i build a VLC with a single command (../extras/package/macosx/build.sh -c) as described here https://wiki.videolan.org/MacOSCompile/.
But after calling the standard initialization code
I got a crash.
Using libvlc version: "4.0.0-dev Otto Chriek"
Assertion failed: (param != NULL), function config_GetPsz, file core.c, line 102.
But after calling the standard initialization code
Code: Select all
QStringList args() {
QStringList argsList;
QString args = qgetenv("VLC_ARGS");
if (!args.isEmpty()) { argsList = args.split(" ", Qt::SkipEmptyParts);
}
else { argsList << "--intf=dummy" << "--no-media-library" << "--no-stats" << "--no-osd" << "--no-loop" << "--no-video-title-show" #if defined(Q_OS_DARWIN) << "--vout=macosx" #endif << "--drop-late-frames";
}
return argsList;
libvlc_instance_t m_vlcInstance = libvlc_new(args.count(), argv);
libvlc_media_player_t m_vlcMediaPlayer = libvlc_media_player_new(m_vlcInstance);
libvlc_media_t m_vlcMedia = libvlc_media_new_path(m_vlcInstance, loc.toUtf8().data());
libvlc_media_player_play(m_vlcMediaPlayer);
}
Using libvlc version: "4.0.0-dev Otto Chriek"
Assertion failed: (param != NULL), function config_GetPsz, file core.c, line 102.