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é
Contribuer à GitLab
Donner votre avis
Raccourcis clavier
?
Extraits de code
Groupes
Projets
Afficher davantage de fils d'Ariane
Elliu
Vivy
Validations
01d489c7
Vérifiée
Valider
01d489c7
rédigé
2 years ago
par
Kubat
Parcourir les fichiers
Options
Téléchargements
Correctifs
Plain Diff
FIX: Fix for MPV version 0.35.1
parent
a721532e
Aucune branche associée trouvée
Branches contenant la validation
Aucune étiquette associée trouvée
2 requêtes de fusion
!31
Draft: VivyScript V4
,
!30
Delete lua + Use OpenGL for MPV
Modifications
1
Masquer les modifications d'espaces
En ligne
Côte à côte
Affichage de
1 fichier modifié
src/UI/DocumentViews/MpvContainer.cc
+6
-16
6 ajouts, 16 suppressions
src/UI/DocumentViews/MpvContainer.cc
avec
6 ajouts
et
16 suppressions
src/UI/DocumentViews/MpvContainer.cc
+
6
−
16
Voir le fichier @
01d489c7
...
@@ -42,6 +42,7 @@ MpvContainer::initializeMpv()
...
@@ -42,6 +42,7 @@ MpvContainer::initializeMpv()
mpv_set_option_string
(
mpv
,
"no-ytdl"
,
"yes"
);
mpv_set_option_string
(
mpv
,
"no-ytdl"
,
"yes"
);
mpv_request_log_messages
(
mpv
,
"info"
);
mpv_request_log_messages
(
mpv
,
"info"
);
mpv_observe_property
(
mpv
,
0
,
"pause"
,
MPV_FORMAT_FLAG
);
mpv_observe_property
(
mpv
,
0
,
"pause"
,
MPV_FORMAT_FLAG
);
mpv_observe_property
(
mpv
,
0
,
"unpause"
,
MPV_FORMAT_FLAG
);
mpv_observe_property
(
mpv
,
0
,
"duration"
,
MPV_FORMAT_DOUBLE
);
mpv_observe_property
(
mpv
,
0
,
"duration"
,
MPV_FORMAT_DOUBLE
);
mpv_observe_property
(
mpv
,
0
,
"time-pos"
,
MPV_FORMAT_DOUBLE
);
mpv_observe_property
(
mpv
,
0
,
"time-pos"
,
MPV_FORMAT_DOUBLE
);
...
@@ -143,18 +144,12 @@ MpvContainer::handleMpvEvent(const mpv_event *const event) noexcept
...
@@ -143,18 +144,12 @@ MpvContainer::handleMpvEvent(const mpv_event *const event) noexcept
logDebug
()
<<
"MPV -> set to"
<<
(
isPlaybackPaused
?
"pause"
:
"play"
);
logDebug
()
<<
"MPV -> set to"
<<
(
isPlaybackPaused
?
"pause"
:
"play"
);
}
}
break
;
else
if
(
checkProp
(
prop
,
"unpause"
,
MPV_FORMAT_FLAG
))
{
isPlaybackPaused
=
!*
reinterpret_cast
<
bool
*>
(
prop
->
data
);
case
MPV_EVENT_PAUSE
:
emit
mpvPlaybackToggled
(
!
isPlaybackPaused
);
isPlaybackPaused
=
true
;
logDebug
()
<<
"MPV -> set to"
<<
(
isPlaybackPaused
?
"pause"
:
"play"
);
emit
mpvPlaybackToggled
(
!
isPlaybackPaused
);
}
logDebug
()
<<
"MPV -> set to pause"
;
break
;
case
MPV_EVENT_UNPAUSE
:
isPlaybackPaused
=
false
;
emit
mpvPlaybackToggled
(
!
isPlaybackPaused
);
logDebug
()
<<
"MPV -> set to play"
;
break
;
break
;
case
MPV_EVENT_START_FILE
:
logDebug
()
<<
"MPV: Begin of file"
;
break
;
case
MPV_EVENT_START_FILE
:
logDebug
()
<<
"MPV: Begin of file"
;
break
;
...
@@ -171,17 +166,12 @@ MpvContainer::handleMpvEvent(const mpv_event *const event) noexcept
...
@@ -171,17 +166,12 @@ MpvContainer::handleMpvEvent(const mpv_event *const event) noexcept
case
MPV_EVENT_GET_PROPERTY_REPLY
:
case
MPV_EVENT_GET_PROPERTY_REPLY
:
case
MPV_EVENT_SET_PROPERTY_REPLY
:
case
MPV_EVENT_SET_PROPERTY_REPLY
:
case
MPV_EVENT_FILE_LOADED
:
case
MPV_EVENT_FILE_LOADED
:
case
MPV_EVENT_TRACKS_CHANGED
:
case
MPV_EVENT_TRACK_SWITCHED
:
case
MPV_EVENT_IDLE
:
case
MPV_EVENT_IDLE
:
case
MPV_EVENT_TICK
:
case
MPV_EVENT_TICK
:
case
MPV_EVENT_SCRIPT_INPUT_DISPATCH
:
case
MPV_EVENT_CLIENT_MESSAGE
:
case
MPV_EVENT_CLIENT_MESSAGE
:
case
MPV_EVENT_AUDIO_RECONFIG
:
case
MPV_EVENT_AUDIO_RECONFIG
:
case
MPV_EVENT_METADATA_UPDATE
:
case
MPV_EVENT_SEEK
:
case
MPV_EVENT_SEEK
:
case
MPV_EVENT_PLAYBACK_RESTART
:
case
MPV_EVENT_PLAYBACK_RESTART
:
case
MPV_EVENT_CHAPTER_CHANGE
:
case
MPV_EVENT_QUEUE_OVERFLOW
:
case
MPV_EVENT_QUEUE_OVERFLOW
:
case
MPV_EVENT_HOOK
:
break
;
case
MPV_EVENT_HOOK
:
break
;
}
}
...
...
Ce diff est replié.
Cliquez pour l'agrandir.
Aperçu
0%
Chargement en cours
Veuillez réessayer
ou
joindre un nouveau fichier
.
Annuler
You are about to add
0
people
to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Enregistrer le commentaire
Annuler
Veuillez vous
inscrire
ou vous
se connecter
pour commenter