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
bc83685c
Commit
bc83685c
authored
Aug 02, 2008
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed fullscreen on exit (the embedded video can live longer than QT
interface.)
parent
a6fd6b09
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
10 deletions
+20
-10
modules/gui/qt4/components/interface_widgets.cpp
modules/gui/qt4/components/interface_widgets.cpp
+15
-8
modules/gui/qt4/components/interface_widgets.hpp
modules/gui/qt4/components/interface_widgets.hpp
+3
-1
modules/gui/qt4/input_manager.cpp
modules/gui/qt4/input_manager.cpp
+1
-0
modules/gui/qt4/main_interface.cpp
modules/gui/qt4/main_interface.cpp
+1
-1
No files found.
modules/gui/qt4/components/interface_widgets.cpp
View file @
bc83685c
...
...
@@ -911,7 +911,7 @@ FullscreenControllerWidget::FullscreenControllerWidget( intf_thread_t *_p_i,
:
ControlsWidget
(
_p_i
,
_p_mi
,
b_advControls
,
b_shiny
,
true
),
i_mouse_last_x
(
-
1
),
i_mouse_last_y
(
-
1
),
b_mouse_over
(
false
),
b_slow_hide_begin
(
false
),
i_slow_hide_timeout
(
1
),
b_fullscreen
(
false
),
i_hide_timeout
(
1
)
b_fullscreen
(
false
),
i_hide_timeout
(
1
)
,
p_vout
(
NULL
)
{
setWindowFlags
(
Qt
::
ToolTip
);
...
...
@@ -970,6 +970,7 @@ FullscreenControllerWidget::FullscreenControllerWidget( intf_thread_t *_p_i,
FullscreenControllerWidget
::~
FullscreenControllerWidget
()
{
detachVout
();
vlc_mutex_destroy
(
&
lock
);
}
...
...
@@ -1197,9 +1198,11 @@ static int FullscreenControllerWidgetMouseMoved( vlc_object_t *vlc_object, const
/**
* It is called when video start
*/
void
FullscreenControllerWidget
::
attachVout
(
vout_thread_t
*
p_vout
)
void
FullscreenControllerWidget
::
attachVout
(
vout_thread_t
*
p_
n
vout
)
{
assert
(
p_vout
);
assert
(
p_nvout
&&
!
p_vout
);
p_vout
=
p_nvout
;
vlc_mutex_lock
(
&
lock
);
var_AddCallback
(
p_vout
,
"fullscreen"
,
FullscreenControllerWidgetFullscreenChanged
,
this
);
/* I miss a add and fire */
...
...
@@ -1209,14 +1212,18 @@ void FullscreenControllerWidget::attachVout( vout_thread_t *p_vout )
/**
* It is called after turn off video.
*/
void
FullscreenControllerWidget
::
detachVout
(
vout_thread_t
*
p_vout
)
void
FullscreenControllerWidget
::
detachVout
()
{
assert
(
p_vout
);
var_DelCallback
(
p_vout
,
"fullscreen"
,
FullscreenControllerWidgetFullscreenChanged
,
this
);
vlc_mutex_lock
(
&
lock
);
fullscreenChanged
(
p_vout
,
false
,
0
);
vlc_mutex_unlock
(
&
lock
);
if
(
p_vout
)
{
var_DelCallback
(
p_vout
,
"fullscreen"
,
FullscreenControllerWidgetFullscreenChanged
,
this
);
vlc_mutex_lock
(
&
lock
);
fullscreenChanged
(
p_vout
,
false
,
0
);
vlc_mutex_unlock
(
&
lock
);
p_vout
=
NULL
;
}
}
/**
...
...
modules/gui/qt4/components/interface_widgets.hpp
View file @
bc83685c
...
...
@@ -247,7 +247,7 @@ public:
/* */
void
attachVout
(
vout_thread_t
*
p_vout
);
void
detachVout
(
vout_thread_t
*
p_vout
);
void
detachVout
();
void
fullscreenChanged
(
vout_thread_t
*
,
bool
b_fs
,
int
i_timeout
);
protected:
...
...
@@ -288,6 +288,8 @@ private:
virtual
void
customEvent
(
QEvent
*
event
);
vout_thread_t
*
p_vout
;
/* Shared variable between FSC and VLC (protected by a lock) */
vlc_mutex_t
lock
;
bool
b_fullscreen
;
...
...
modules/gui/qt4/input_manager.cpp
View file @
bc83685c
...
...
@@ -414,6 +414,7 @@ void InputManager::sectionMenu()
{
if
(
hasInput
()
)
{
// FIXME we should not assume that but probably find the entry named "Root" in "title 0"
vlc_value_t
val
;
val
.
i_int
=
2
;
var_Set
(
p_input
,
"title 0"
,
val
);
}
...
...
modules/gui/qt4/main_interface.cpp
View file @
bc83685c
...
...
@@ -692,7 +692,7 @@ void *MainInterface::requestVideo( vout_thread_t *p_nvout, int *pi_x,
void
MainInterface
::
releaseVideo
(
vout_thread_t
*
p_vout
,
void
*
p_win
)
{
if
(
fullscreenControls
)
fullscreenControls
->
detachVout
(
p_vout
);
if
(
fullscreenControls
)
fullscreenControls
->
detachVout
();
emit
askReleaseVideo
(
p_win
);
}
...
...
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