Skip to content
GitLab
Explorer
Connexion
Navigation principale
Rechercher ou aller à…
Projet
lektor
Gestion
Activité
Membres
Labels
Programmation
Tickets
Tableaux des tickets
Jalons
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
Kubat
lektor
Validations
e71250d3
Vérifiée
Valider
e71250d3
rédigé
4 years ago
par
Kubat
Parcourir les fichiers
Options
Téléchargements
Correctifs
Plain Diff
MKV: Warn user when mkvpropedit fails...
parent
386a2113
Aucune branche associée trouvée
Aucune étiquette associée trouvée
1 requête de fusion
!122
Resolve "Import the "Favoris" from kurisu"
Modifications
1
Masquer les modifications d'espaces
En ligne
Côte à côte
Affichage de
1 fichier modifié
src/mkv/write.c
+7
-6
7 ajouts, 6 suppressions
src/mkv/write.c
avec
7 ajouts
et
6 suppressions
src/mkv/write.c
+
7
−
6
Voir le fichier @
e71250d3
...
@@ -66,14 +66,12 @@ mkvpropedit__(const char *const args[])
...
@@ -66,14 +66,12 @@ mkvpropedit__(const char *const args[])
if
((
pid
=
fork
())
==
0
)
{
if
((
pid
=
fork
())
==
0
)
{
if
((
fd
=
open
(
"/dev/null"
,
O_WRONLY
|
O_TRUNC
))
<
0
)
{
if
((
fd
=
open
(
"/dev/null"
,
O_WRONLY
|
O_TRUNC
))
<
0
)
{
LOG_ERROR
(
"FORK"
,
"Can't to open /dev/null "
LOG_ERROR
(
"FORK"
,
"Can't to open /dev/null in O_WRONLY O_TRUNC"
);
"in O_WRONLY O_TRUNC"
);
return
false
;
return
false
;
}
}
if
(
dup2
(
fd
,
1
)
<
0
)
{
if
(
dup2
(
fd
,
1
)
<
0
)
{
LOG_ERROR
(
"FORK"
,
"Failed to duplicate "
LOG_ERROR
(
"FORK"
,
"Failed to duplicate /dev/null to stdout"
);
"/dev/null to stdout"
);
return
false
;
return
false
;
}
}
...
@@ -89,14 +87,17 @@ mkvpropedit__(const char *const args[])
...
@@ -89,14 +87,17 @@ mkvpropedit__(const char *const args[])
else
{
else
{
do
{
do
{
if
(
waitpid
(
pid
,
&
wstatus
,
WUNTRACED
|
WCONTINUED
)
==
-
1
)
{
if
(
waitpid
(
pid
,
&
wstatus
,
WUNTRACED
|
WCONTINUED
)
==
-
1
)
{
LOG_ERROR
(
"FORK"
,
"Failed to wait children: %s"
,
LOG_ERROR
(
"FORK"
,
"Failed to wait children: %s"
,
strerror
(
errno
));
strerror
(
errno
));
return
false
;
return
false
;
}
}
}
while
(
!
WIFEXITED
(
wstatus
)
&&
!
WIFSIGNALED
(
wstatus
));
}
while
(
!
WIFEXITED
(
wstatus
)
&&
!
WIFSIGNALED
(
wstatus
));
if
((
status
=
WEXITSTATUS
(
wstatus
)))
{
if
((
status
=
WEXITSTATUS
(
wstatus
)))
{
LOG_ERROR
(
"FORK"
,
"Children failed with status %d"
,
status
);
LOG_ERROR
(
"FORK"
,
"Children failed with status %d"
,
status
);
if
(
status
==
2
)
LOG_ERROR
(
"FORK"
,
"Status 2 with mkvpropedit could means that karas are not valid MKV files"
);
else
if
(
status
==
1
)
LOG_WARN
(
"FORK"
,
"Status 1 on mkvpropedit means that it generated some warnings..."
);
return
false
;
return
false
;
}
}
}
}
...
...
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