Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
33614823
Commit
33614823
authored
Feb 01, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Interaction: unused parameter
parent
6b8d2191
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
11 deletions
+10
-11
src/interface/interaction.c
src/interface/interaction.c
+10
-11
No files found.
src/interface/interaction.c
View file @
33614823
...
...
@@ -70,7 +70,7 @@ static void* InteractionLoop( void * );
static
void
InteractionManage
(
interaction_t
*
);
static
void
DialogDestroy
(
interaction_dialog_t
*
);
static
int
DialogSend
(
vlc_object_t
*
,
interaction_dialog_t
*
);
static
int
DialogSend
(
interaction_dialog_t
*
);
#define DIALOG_INIT( type, err ) \
interaction_dialog_t* p_new = calloc( 1, sizeof( interaction_dialog_t ) ); \
...
...
@@ -113,7 +113,7 @@ int __intf_UserFatal( vlc_object_t *p_this, bool b_blocking,
else
p_new
->
i_flags
=
DIALOG_NONBLOCKING_ERROR
;
return
DialogSend
(
p_
this
,
p_
new
);
return
DialogSend
(
p_new
);
}
/**
...
...
@@ -136,7 +136,7 @@ int __intf_UserWarn( vlc_object_t *p_this,
p_new
->
i_flags
=
DIALOG_WARNING
;
return
DialogSend
(
p_
this
,
p_
new
);
return
DialogSend
(
p_new
);
}
/**
...
...
@@ -167,7 +167,7 @@ int __intf_UserYesNo( vlc_object_t *p_this,
if
(
psz_other
)
p_new
->
psz_other_button
=
strdup
(
psz_other
);
return
DialogSend
(
p_
this
,
p_
new
);
return
DialogSend
(
p_new
);
}
/**
...
...
@@ -198,7 +198,7 @@ __intf_Progress( vlc_object_t *p_this, const char *psz_title,
else
p_new
->
i_flags
=
DIALOG_INTF_PROGRESS
;
DialogSend
(
p_
this
,
p_
new
);
DialogSend
(
p_new
);
return
p_new
;
}
...
...
@@ -277,7 +277,7 @@ int __intf_UserLoginPassword( vlc_object_t *p_this,
p_new
->
i_flags
=
DIALOG_LOGIN_PW_OK_CANCEL
;
i_ret
=
DialogSend
(
p_
this
,
p_
new
);
i_ret
=
DialogSend
(
p_new
);
if
(
i_ret
!=
DIALOG_CANCELLED
&&
i_ret
!=
VLC_EGENERIC
)
{
...
...
@@ -311,7 +311,7 @@ int __intf_UserStringInput( vlc_object_t *p_this,
p_new
->
i_flags
=
DIALOG_PSZ_INPUT_OK_CANCEL
;
i_ret
=
DialogSend
(
p_
this
,
p_
new
);
i_ret
=
DialogSend
(
p_new
);
if
(
i_ret
!=
DIALOG_CANCELLED
)
{
...
...
@@ -474,12 +474,12 @@ static void DialogDestroy( interaction_dialog_t *p_dialog )
/* Ask for the dialog to be sent to the user. Wait for answer
* if required */
static
int
DialogSend
(
vlc_object_t
*
p_this
,
interaction_dialog_t
*
p_dialog
)
static
int
DialogSend
(
interaction_dialog_t
*
p_dialog
)
{
interaction_t
*
p_interaction
;
intf_thread_t
*
p_intf
;
if
(
p_
this
->
i_flags
&
OBJECT_FLAGS_NOINTERACT
)
if
(
p_
dialog
->
p_parent
->
i_flags
&
OBJECT_FLAGS_NOINTERACT
)
return
VLC_EGENERIC
;
p_interaction
=
InteractionGet
(
p_dialog
->
p_parent
);
...
...
@@ -498,12 +498,11 @@ static int DialogSend( vlc_object_t *p_this, interaction_dialog_t *p_dialog )
}
p_dialog
->
p_interface
=
p_intf
;
if
(
config_GetInt
(
p_
this
,
"interact"
)
||
if
(
config_GetInt
(
p_
interaction
,
"interact"
)
||
p_dialog
->
i_flags
&
DIALOG_BLOCKING_ERROR
||
p_dialog
->
i_flags
&
DIALOG_NONBLOCKING_ERROR
)
{
p_dialog
->
p_interaction
=
p_interaction
;
p_dialog
->
p_parent
=
p_this
;
/* Check if we have already added this dialog */
vlc_object_lock
(
p_interaction
);
...
...
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