Projects
Staging
vlc-beta
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 293
View file
vlc-beta.spec
Changed
@@ -37,8 +37,6 @@ Source1: %name.changes Source3: %name-rpmlintrc Patch0: vlc-beta.patch -Patch1: vlc.a52dec.patch -Patch2: vlc.hostname.patch %ifarch x86_64 aarch64 Requires: libqtquickcontrols2plugin.so()(64bit)
View file
vlc-beta.patch
Changed
@@ -27,6 +27,15 @@ VLC_ADD_PLUGIN(mod) VLC_ADD_CXXFLAGS(mod,$LIBMODPLUG_CFLAGS) VLC_ADD_CFLAGS(mod,$LIBMODPLUG_CFLAGS) #modules/demux/mod.c needs CFLAGS_mod, not CXXFLAGS_mod +@@ -4658,7 +4658,7 @@ AS_IF(test -z "$VLC_COMPILE_HOST", + VLC_COMPILE_HOST=`hostname -f 2>/dev/null || hostname` + ) + AC_DEFINE_UNQUOTED(VLC_COMPILE_HOST, "$VLC_COMPILE_HOST", host which ran configure) +-AC_DEFINE_UNQUOTED(VLC_COMPILER, "`$CC -v 2>&1 | tail -n 1 | sed -e 's/ *$//'`", compiler) ++AC_DEFINE_UNQUOTED(VLC_COMPILER, "gcc", compiler) + dnl + dnl Handle substvars that use $(top_srcdir) + dnl --- a/include/vlc/libvlc_version.h +++ b/include/vlc/libvlc_version.h @@ -54,7 +54,7 @@ @@ -38,6 +47,17 @@ /** LibVLC ABI minor version number, updated when compatible changes are added */ # define LIBVLC_ABI_VERSION_MINOR (0) +--- a/modules/codec/a52.c ++++ b/modules/codec/a52.c +@@ -300,7 +300,7 @@ static int Open( vlc_object_t *p_this ) + p_sys->i_flags |= A52_ADJUST_LEVEL; + + /* Initialize liba52 */ +- p_sys->p_liba52 = a52_init( 0 ); ++ p_sys->p_liba52 = a52_init(); + if( p_sys->p_liba52 == NULL ) + { + msg_Err( p_this, "unable to initialize liba52" ); --- a/modules/control/cli/cli.c +++ b/modules/control/cli/cli.c @@ -537,9 +537,8 @@ static void cli_client_delete(struct cli_client *cl)
View file
vlc.a52dec.patch
Deleted
@@ -1,11 +0,0 @@ ---- a/modules/codec/a52.c -+++ b/modules/codec/a52.c -@@ -302,7 +302,7 @@ static int Open( vlc_object_t *p_this ) - p_sys->i_flags |= A52_ADJUST_LEVEL; - - /* Initialize liba52 */ -- p_sys->p_liba52 = a52_init( 0 ); -+ p_sys->p_liba52 = a52_init(); - if( p_sys->p_liba52 == NULL ) - { - msg_Err( p_this, "unable to initialize liba52" );
View file
vlc.hostname.patch
Deleted
@@ -1,11 +0,0 @@ ---- a/configure.ac -+++ b/configure.ac -@@ -4208,7 +4208,7 @@ AC_SUBST(VERSION_MINOR) - VLC_COMPILE_HOST=`hostname -f 2>/dev/null || hostname` - ) - AC_DEFINE_UNQUOTED(VLC_COMPILE_HOST, "$VLC_COMPILE_HOST", host which ran configure) --AC_DEFINE_UNQUOTED(VLC_COMPILER, "`$CC -v 2>&1 | tail -n 1 | sed -e 's/ *$//'`", compiler) -+AC_DEFINE_UNQUOTED(VLC_COMPILER, "gcc", compiler) - dnl - dnl Handle substvars that use $(top_srcdir) - dnl
View file
_service:obs_scm:vlc-beta-20230420.b437cad568.obscpio/modules/gui/qt/medialibrary/medialib.cpp -> _service:obs_scm:vlc-beta-20230421.8d930c5670.obscpio/modules/gui/qt/medialibrary/medialib.cpp
Changed
@@ -298,6 +298,26 @@ return; } + auto it = m_inputItemQuery.find(variantList); + + if (it == m_inputItemQuery.end()) + { + it = m_inputItemQuery.insert(variantList, {callback}); + } + else + { + // be patient + + for (const auto& it2 : it.value()) + { + if (callback.strictlyEquals(it2)) + return; + } + + it.value().push_back(callback); // FIXME: Use an ordered set + return; + } + runOnMLThread<Ctx>(this, //ML thread mlIdList(vlc_medialibrary_t* ml, Ctx& ctx){ @@ -326,7 +346,7 @@ } }, //UI thread - this, callback(quint64, Ctx& ctx) mutable + this, it(quint64, Ctx& ctx) mutable { auto jsEngine = qjsEngine(this); if (!jsEngine) @@ -341,7 +361,12 @@ i++; } - callback.call({jsArray}); + for (auto cb : qAsConst(it.value())) // TODO: Qt 6 use const reference + { + cb.call({jsArray}); + } + + m_inputItemQuery.erase(it); }); }
View file
_service:obs_scm:vlc-beta-20230420.b437cad568.obscpio/modules/gui/qt/medialibrary/medialib.hpp -> _service:obs_scm:vlc-beta-20230421.8d930c5670.obscpio/modules/gui/qt/medialibrary/medialib.hpp
Changed
@@ -218,6 +218,8 @@ quint64 m_taskId = 1; QMap<quint64, RunOnMLThreadBaseRunner*> m_runningTasks; QMultiMap<const QObject*, quint64> m_objectTasks; + + QMap<QVariantList, QVector<QJSValue>> m_inputItemQuery; }; class RunOnMLThreadBaseRunner : public QObject, public QRunnable
View file
_service:obs_scm:vlc-beta-20230420.b437cad568.obscpio/modules/gui/qt/medialibrary/qml/PlaylistMedia.qml -> _service:obs_scm:vlc-beta-20230421.8d930c5670.obscpio/modules/gui/qt/medialibrary/qml/PlaylistMedia.qml
Changed
@@ -161,9 +161,13 @@ // NOTE: Dropping medialibrary content into the playlist. } else if (Helpers.isValidInstanceOf(item, Widgets.DragItem)) { - item.getSelectedInputItem(function(inputItems) { - model.insert(inputItems, destinationIndex) - }) + if (item.inputItems) { + model.insert(item.inputItems, destinationIndex) + } else { + item.getSelectedInputItem(function(inputItems) { + model.insert(inputItems, destinationIndex) + }) + } } root.forceActiveFocus()
View file
_service:obs_scm:vlc-beta-20230420.b437cad568.obscpio/modules/gui/qt/playlist/qml/PlaylistListView.qml -> _service:obs_scm:vlc-beta-20230421.8d930c5670.obscpio/modules/gui/qt/playlist/qml/PlaylistListView.qml
Changed
@@ -102,13 +102,17 @@ // NOTE: Dropping medialibrary content into the queue. } else if (Helpers.isValidInstanceOf(item, Widgets.DragItem)) { - item.getSelectedInputItem(function(inputItems) { - if (!Array.isArray(inputItems) || inputItems.length === 0) { - console.warn("can't convert items to input items"); - return - } - mainPlaylistController.insert(index, inputItems, false) - }) + if (item.inputItems) { + mainPlaylistController.insert(index, item.inputItems, false) + } else { + item.getSelectedInputItem(function(inputItems) { + if (!Array.isArray(inputItems) || inputItems.length === 0) { + console.warn("can't convert items to input items"); + return + } + mainPlaylistController.insert(index, inputItems, false) + }) + } // NOTE: Dropping an external item (i.e. filesystem) into the queue. } else if (drop.hasUrls) {
View file
_service:obs_scm:vlc-beta-20230420.b437cad568.obscpio/modules/gui/qt/widgets/qml/DragItem.qml -> _service:obs_scm:vlc-beta-20230421.8d930c5670.obscpio/modules/gui/qt/widgets/qml/DragItem.qml
Changed
@@ -60,6 +60,8 @@ // string => role property string titleRole: "title" + readonly property var inputItems: _inputItems + function coversXPos(index) { return VLCStyle.margin_small + (coverSize / 3) * index; } @@ -82,6 +84,8 @@ if (!dragItem._active) return + Qt.callLater(dragItem.getSelectedInputItem, dragItem.setInputItems) + var covers = var titleList = @@ -107,6 +111,16 @@ _title = titleList.join(",") + (indexes.length > _maxCovers ? "..." : "") } + function setInputItems(inputItems) { + if (!Array.isArray(inputItems) || inputItems.length === 0) { + console.warn("can't convert items to input items"); + dragItem._inputItems = null + return + } + + dragItem._inputItems = inputItems + } + //--------------------------------------------------------------------------------------------- // Private @@ -118,6 +132,8 @@ readonly property int _displayedCoversCount: Math.min(_indexesSize, _maxCovers + 1) + property var _inputItems + property var _data: property var _covers: @@ -131,6 +147,9 @@ // TODO: Rework D&D positioning if (!Drag.active) x = y = -1 + + if (!Drag.active) + dragItem._inputItems = undefined } //---------------------------------------------------------------------------------------------
View file
_service:obs_scm:vlc-beta.obsinfo
Changed
@@ -1,4 +1,4 @@ name: vlc-beta -version: 20230420.b437cad568 -mtime: 1682006141 -commit: b437cad5687aa36d6b5fe15a3f61e46e2bfb81ea +version: 20230421.8d930c5670 +mtime: 1682043073 +commit: 8d930c56700387bddc399872c69ec88b4c0c6387
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.