Skip to content
GitLab
Explorer
Connexion
Navigation principale
Rechercher ou aller à…
Projet
Vivy
Gestion
Activité
Membres
Labels
Programmation
Tickets
Tableaux des tickets
Jalons
Wiki
Wiki externe
Code
Requêtes de fusion
Dépôt
Branches
Validations
Étiquettes
Graphe du dépôt
Comparer les révisions
Compilation
Pipelines
Jobs
Planifications de pipeline
Artéfacts
Aide
Aide
Support
Documentation de GitLab
Comparer les forfaits GitLab
Forum de la communauté GitLab
Contribuer à GitLab
Donner votre avis
Raccourcis clavier
?
Extraits de code
Groupes
Projets
Afficher davantage de fils d'Ariane
Elliu
Vivy
Requêtes de fusion
!27
Draft: Fix mpv deadlock on quit main window
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Fermé
Draft: Fix mpv deadlock on quit main window
fix-mpv
vers
master
Vue d'ensemble
1
Validations
5
Pipelines
13
Modifications
38
Fermé
Draft: Fix mpv deadlock on quit main window
Kubat
requested to merge
fix-mpv
into
master
19 nov. 2021
Vue d'ensemble
1
Validations
5
Pipelines
13
Modifications
38
Solves
#5
Modification effectuée
19 nov. 2021
par
Kubat
0
0
Rapports de requête de fusion
Comparer
master
version 12
fd5b97e5
8 févr. 2022
version 11
704c8927
6 févr. 2022
version 10
f50be964
6 févr. 2022
version 9
249e0967
6 févr. 2022
version 8
016fb804
6 févr. 2022
version 7
cc55d22a
4 févr. 2022
version 6
b17ab19c
29 janv. 2022
version 5
b17ab19c
19 nov. 2021
version 4
f0b66c45
19 nov. 2021
version 3
0c448750
19 nov. 2021
version 2
d3701f05
19 nov. 2021
version 1
a36e2897
19 nov. 2021
master (base)
et
dernière version
dernière version
c0f3e696
5 validations,
9 févr. 2022
version 12
fd5b97e5
4 validations,
8 févr. 2022
version 11
704c8927
3 validations,
6 févr. 2022
version 10
f50be964
3 validations,
6 févr. 2022
version 9
249e0967
4 validations,
6 févr. 2022
version 8
016fb804
3 validations,
6 févr. 2022
version 7
cc55d22a
2 validations,
4 févr. 2022
version 6
b17ab19c
2 validations,
29 janv. 2022
version 5
b17ab19c
3 validations,
19 nov. 2021
version 4
f0b66c45
2 validations,
19 nov. 2021
version 3
0c448750
1 validation,
19 nov. 2021
version 2
d3701f05
1 validation,
19 nov. 2021
version 1
a36e2897
1 validation,
19 nov. 2021
38 files
+
790
−
2746
En ligne
Comparer les modifications
Côte à côte
En ligne
Afficher les modifications des espaces
Afficher un fichier à la fois
Fichiers
38
src/Lib/Script/CRTPLuaScriptObject/FreeFunctions.cc supprimé
100644 → 0
+
0
−
57
Afficher le fichier @ 4ac3dbcc
#include
"PreCompiledHeaders.hh"
#include
"Lib/Script/CRTPLuaScriptObject.hh"
#include
"Lib/Script/LuaContext.hh"
#include
"Lib/Document/CRTPSubDocument.hh"
#include
"Lib/Document/VivyDocument.hh"
#include
"Lib/Audio.hh"
#include
"Lib/Video.hh"
#include
"VivyApplication.hh"
using
namespace
Vivy
::
Script
;
FreeFunctions
::
FreeFunctions
(
lua_State
*
const
L
)
noexcept
{
const
auto
*
const
context
=
LuaContext
::
getContext
(
L
);
out
(
context
)
<<
"Creating the FreeFunctions lua object!"
;
std
::
shared_ptr
<
VivyDocument
>
vivyDoc
=
context
->
getAttachedVivyDocument
();
if
(
vivyDoc
)
{
if
(
!
(
vivyDoc
->
checkDocumentCapabilities
(
VivyDocument
::
AudioAble
)
&&
vivyDoc
->
checkDocumentCapabilities
(
VivyDocument
::
AssAble
)
&&
vivyDoc
->
checkDocumentCapabilities
(
VivyDocument
::
AudioAble
)))
{
err
(
context
)
<<
"The VivyDocument is not a complete document, "
<<
"can't load it for scripting"
;
luaGlobalError
(
L
,
"Attached VivyDocument is not complete"
);
}
out
(
context
)
<<
"Initializing the FreeFunctions lua object with the VivyDocument"
;
std
::
shared_ptr
<
VideoStream
>
video
=
vivyDoc
->
getVideoSubDocument
()
->
getDefaultStream
();
[[
maybe_unused
]]
std
::
shared_ptr
<
AudioStream
>
audio
=
vivyDoc
->
getAudioSubDocument
()
->
getDefaultStream
();
videoWidth
=
video
->
getWidth
();
videoHeight
=
video
->
getWidth
();
TODO
(
Set
getters
values
for
audio
)
}
else
{
out
(
context
)
<<
"No attached Vivy document in the Lua context"
;
}
}
int
FreeFunctions
::
print
(
lua_State
*
const
L
)
noexcept
{
const
std
::
string_view
arg
=
CHECK_STRING_VIEW
(
L
,
1
);
out
(
LuaContext
::
getContext
(
L
))
<<
"OUT: "
<<
arg
;
LUA_RETURN_NOTHING
(
L
);
}
int
FreeFunctions
::
getModule
(
lua_State
*
const
L
)
noexcept
{
const
auto
*
const
context
=
LuaContext
::
getContext
(
L
);
const
std
::
string_view
modName
=
CHECK_STRING_VIEW
(
L
,
1
);
[[
maybe_unused
]]
const
ModuleDeclaration
*
const
mod
=
context
->
getModule
(
modName
);
return
1
;
}
Chargement en cours