Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
9ba4d0ff
Commit
9ba4d0ff
authored
Aug 28, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
psz_intf_switch was read-only: remove dead code
parent
0ac55db8
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
54 deletions
+10
-54
include/vlc_interface.h
include/vlc_interface.h
+0
-3
modules/gui/qt4/components/interface_widgets.cpp
modules/gui/qt4/components/interface_widgets.cpp
+2
-10
modules/gui/wxwidgets/video.cpp
modules/gui/wxwidgets/video.cpp
+2
-10
src/interface/interface.c
src/interface/interface.c
+6
-31
No files found.
include/vlc_interface.h
View file @
9ba4d0ff
...
@@ -74,9 +74,6 @@ struct intf_thread_t
...
@@ -74,9 +74,6 @@ struct intf_thread_t
vlc_mutex_t
change_lock
;
vlc_mutex_t
change_lock
;
bool
b_menu_change
;
bool
b_menu_change
;
bool
b_menu
;
bool
b_menu
;
/* Provides the ability to switch an interface on the fly */
char
*
psz_switch_intf
;
};
};
/** \brief Arguments passed to a dialogs provider
/** \brief Arguments passed to a dialogs provider
...
...
modules/gui/qt4/components/interface_widgets.cpp
View file @
9ba4d0ff
...
@@ -113,17 +113,9 @@ VideoWidget::~VideoWidget()
...
@@ -113,17 +113,9 @@ VideoWidget::~VideoWidget()
(
vout_thread_t
*
)
vlc_object_get
(
i_vout
)
:
NULL
;
(
vout_thread_t
*
)
vlc_object_get
(
i_vout
)
:
NULL
;
if
(
p_vout
)
if
(
p_vout
)
{
if
(
!
p_intf
->
psz_switch_intf
)
{
{
if
(
vout_Control
(
p_vout
,
VOUT_CLOSE
)
!=
VLC_SUCCESS
)
if
(
vout_Control
(
p_vout
,
VOUT_CLOSE
)
!=
VLC_SUCCESS
)
vout_Control
(
p_vout
,
VOUT_REPARENT
);
vout_Control
(
p_vout
,
VOUT_REPARENT
);
}
else
{
if
(
vout_Control
(
p_vout
,
VOUT_REPARENT
)
!=
VLC_SUCCESS
)
vout_Control
(
p_vout
,
VOUT_CLOSE
);
}
vlc_object_release
(
p_vout
);
vlc_object_release
(
p_vout
);
}
}
}
}
...
...
modules/gui/wxwidgets/video.cpp
View file @
9ba4d0ff
...
@@ -154,18 +154,10 @@ VideoWindow::~VideoWindow()
...
@@ -154,18 +154,10 @@ VideoWindow::~VideoWindow()
{
{
vlc_mutex_lock
(
&
lock
);
vlc_mutex_lock
(
&
lock
);
if
(
p_vout
)
if
(
p_vout
)
{
if
(
!
p_intf
->
psz_switch_intf
)
{
{
if
(
vout_Control
(
p_vout
,
VOUT_CLOSE
)
!=
VLC_SUCCESS
)
if
(
vout_Control
(
p_vout
,
VOUT_CLOSE
)
!=
VLC_SUCCESS
)
vout_Control
(
p_vout
,
VOUT_REPARENT
,
0
);
vout_Control
(
p_vout
,
VOUT_REPARENT
,
0
);
}
}
else
{
if
(
vout_Control
(
p_vout
,
VOUT_REPARENT
,
0
)
!=
VLC_SUCCESS
)
vout_Control
(
p_vout
,
VOUT_CLOSE
);
}
}
p_intf
->
pf_request_window
=
NULL
;
p_intf
->
pf_request_window
=
NULL
;
p_intf
->
pf_release_window
=
NULL
;
p_intf
->
pf_release_window
=
NULL
;
...
...
src/interface/interface.c
View file @
9ba4d0ff
...
@@ -224,8 +224,6 @@ static void* RunInterface( vlc_object_t *p_this )
...
@@ -224,8 +224,6 @@ static void* RunInterface( vlc_object_t *p_this )
var_AddCallback
(
p_intf
,
"intf-add"
,
AddIntfCallback
,
NULL
);
var_AddCallback
(
p_intf
,
"intf-add"
,
AddIntfCallback
,
NULL
);
do
{
/* Give control to the interface */
/* Give control to the interface */
if
(
p_intf
->
pf_run
)
if
(
p_intf
->
pf_run
)
p_intf
->
pf_run
(
p_intf
);
p_intf
->
pf_run
(
p_intf
);
...
@@ -237,29 +235,6 @@ static void* RunInterface( vlc_object_t *p_this )
...
@@ -237,29 +235,6 @@ static void* RunInterface( vlc_object_t *p_this )
vlc_object_unlock
(
p_intf
);
vlc_object_unlock
(
p_intf
);
}
}
if
(
!
p_intf
->
psz_switch_intf
)
{
break
;
}
/* Make sure the old interface is completely uninitialized */
module_Unneed
(
p_intf
,
p_intf
->
p_module
);
/* Provide ability to switch the main interface on the fly */
psz_intf
=
p_intf
->
psz_switch_intf
;
p_intf
->
psz_switch_intf
=
NULL
;
vlc_object_lock
(
p_intf
);
p_intf
->
b_die
=
false
;
/* FIXME */
p_intf
->
b_dead
=
false
;
vlc_object_unlock
(
p_intf
);
p_intf
->
psz_intf
=
psz_intf
;
p_intf
->
p_module
=
module_Need
(
p_intf
,
"interface"
,
psz_intf
,
0
);
}
while
(
p_intf
->
p_module
);
vlc_restorecancel
(
canc
);
vlc_restorecancel
(
canc
);
return
NULL
;
return
NULL
;
}
}
...
...
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