Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
afacc88a
Commit
afacc88a
authored
Jul 05, 2009
by
Rémi Denis-Courmont
Browse files
Separate variable for modal and non modal errors
parent
9a55c487
Changes
2
Hide whitespace changes
Inline
Side-by-side
include/vlc_dialog.h
View file @
afacc88a
...
@@ -35,7 +35,6 @@ typedef struct dialog_fatal_t
...
@@ -35,7 +35,6 @@ typedef struct dialog_fatal_t
{
{
const
char
*
title
;
const
char
*
title
;
const
char
*
message
;
const
char
*
message
;
bool
modal
;
}
dialog_fatal_t
;
}
dialog_fatal_t
;
VLC_EXPORT
(
void
,
dialog_VFatal
,
(
vlc_object_t
*
,
bool
,
const
char
*
,
const
char
*
,
va_list
)
);
VLC_EXPORT
(
void
,
dialog_VFatal
,
(
vlc_object_t
*
,
bool
,
const
char
*
,
const
char
*
,
va_list
)
);
...
...
src/interface/dialog.c
View file @
afacc88a
...
@@ -119,8 +119,9 @@ void dialog_VFatal (vlc_object_t *obj, bool modal, const char *title,
...
@@ -119,8 +119,9 @@ void dialog_VFatal (vlc_object_t *obj, bool modal, const char *title,
if
(
vasprintf
(
&
text
,
fmt
,
ap
)
!=
-
1
)
if
(
vasprintf
(
&
text
,
fmt
,
ap
)
!=
-
1
)
{
{
dialog_fatal_t
dialog
=
{
title
,
text
,
modal
,
};
dialog_fatal_t
dialog
=
{
title
,
text
,
};
var_SetAddress
(
provider
,
"dialog-fatal"
,
&
dialog
);
var_SetAddress
(
provider
,
modal
?
"dialog-critical"
:
"dialog-error"
,
&
dialog
);
free
(
text
);
free
(
text
);
}
}
vlc_object_release
(
provider
);
vlc_object_release
(
provider
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment