Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
bc496caa
Commit
bc496caa
authored
Apr 02, 2013
by
Erwan Tulou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
skins2: cosmetics
parent
d878853f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
26 deletions
+26
-26
modules/gui/skins2/src/vout_manager.cpp
modules/gui/skins2/src/vout_manager.cpp
+26
-26
No files found.
modules/gui/skins2/src/vout_manager.cpp
View file @
bc496caa
...
...
@@ -95,15 +95,15 @@ void VoutManager::saveVoutConfig( )
vector
<
SavedWnd
>::
iterator
it
;
for
(
it
=
m_SavedWndVec
.
begin
();
it
!=
m_SavedWndVec
.
end
();
++
it
)
{
if
(
(
*
it
).
pCtrlVideo
)
if
(
it
->
pCtrlVideo
)
{
// detach vout thread from VideoControl
(
*
it
).
pCtrlVideo
->
detachVoutWindow
(
);
it
->
pCtrlVideo
->
detachVoutWindow
(
);
// memorize width/height before VideoControl is destroyed
(
*
it
).
width
=
(
*
it
).
pCtrlVideo
->
getPosition
()
->
getWidth
();
(
*
it
).
height
=
(
*
it
).
pCtrlVideo
->
getPosition
()
->
getHeight
();
(
*
it
).
pCtrlVideo
=
NULL
;
it
->
width
=
it
->
pCtrlVideo
->
getPosition
()
->
getWidth
();
it
->
height
=
it
->
pCtrlVideo
->
getPosition
()
->
getHeight
();
it
->
pCtrlVideo
=
NULL
;
}
}
...
...
@@ -128,8 +128,8 @@ void VoutManager::restoreVoutConfig( bool b_success )
CtrlVideo
*
pCtrlVideo
=
getBestCtrlVideo
();
if
(
pCtrlVideo
)
{
pCtrlVideo
->
attachVoutWindow
(
(
*
it
).
pVoutWindow
);
(
*
it
).
pCtrlVideo
=
pCtrlVideo
;
pCtrlVideo
->
attachVoutWindow
(
it
->
pVoutWindow
);
it
->
pCtrlVideo
=
pCtrlVideo
;
}
}
}
...
...
@@ -140,13 +140,13 @@ void VoutManager::discardVout( CtrlVideo* pCtrlVideo )
vector
<
SavedWnd
>::
iterator
it
;
for
(
it
=
m_SavedWndVec
.
begin
();
it
!=
m_SavedWndVec
.
end
();
++
it
)
{
if
(
(
*
it
).
pCtrlVideo
==
pCtrlVideo
)
if
(
it
->
pCtrlVideo
==
pCtrlVideo
)
{
// detach vout thread from VideoControl
(
*
it
).
pCtrlVideo
->
detachVoutWindow
(
);
(
*
it
).
width
=
(
*
it
).
pCtrlVideo
->
getPosition
()
->
getWidth
();
(
*
it
).
height
=
(
*
it
).
pCtrlVideo
->
getPosition
()
->
getHeight
();
(
*
it
).
pCtrlVideo
=
NULL
;
it
->
pCtrlVideo
->
detachVoutWindow
(
);
it
->
width
=
it
->
pCtrlVideo
->
getPosition
()
->
getWidth
();
it
->
height
=
it
->
pCtrlVideo
->
getPosition
()
->
getHeight
();
it
->
pCtrlVideo
=
NULL
;
break
;
}
}
...
...
@@ -158,11 +158,11 @@ void VoutManager::requestVout( CtrlVideo* pCtrlVideo )
vector
<
SavedWnd
>::
iterator
it
;
for
(
it
=
m_SavedWndVec
.
begin
();
it
!=
m_SavedWndVec
.
end
();
++
it
)
{
if
(
(
*
it
).
pCtrlVideo
==
NULL
)
if
(
it
->
pCtrlVideo
==
NULL
)
{
pCtrlVideo
->
attachVoutWindow
(
(
*
it
).
pVoutWindow
,
(
*
it
).
width
,
(
*
it
).
height
);
(
*
it
).
pCtrlVideo
=
pCtrlVideo
;
pCtrlVideo
->
attachVoutWindow
(
it
->
pVoutWindow
,
it
->
width
,
it
->
height
);
it
->
pCtrlVideo
=
pCtrlVideo
;
break
;
}
}
...
...
@@ -221,7 +221,7 @@ void VoutManager::acceptWnd( vout_window_t* pWnd, int width, int height )
// save vout characteristics
m_SavedWndVec
.
push_back
(
SavedWnd
(
pWnd
,
pVoutWindow
,
pCtrlVideo
)
);
msg_Dbg
(
pWnd
,
"New vout : Ctrl = %p, w x h = %
dx%d
"
,
msg_Dbg
(
pWnd
,
"New vout : Ctrl = %p, w x h = %
ix%i
"
,
pCtrlVideo
,
width
,
height
);
}
...
...
@@ -232,19 +232,19 @@ void VoutManager::releaseWnd( vout_window_t* pWnd )
vector
<
SavedWnd
>::
iterator
it
;
for
(
it
=
m_SavedWndVec
.
begin
();
it
!=
m_SavedWndVec
.
end
();
++
it
)
{
if
(
(
*
it
).
pWnd
==
pWnd
)
if
(
it
->
pWnd
==
pWnd
)
{
msg_Dbg
(
getIntf
(),
"vout released vout=%p, VideoCtrl=%p"
,
pWnd
,
(
*
it
).
pCtrlVideo
);
pWnd
,
it
->
pCtrlVideo
);
// if a video control was being used, detach from it
if
(
(
*
it
).
pCtrlVideo
)
if
(
it
->
pCtrlVideo
)
{
(
*
it
).
pCtrlVideo
->
detachVoutWindow
(
);
it
->
pCtrlVideo
->
detachVoutWindow
(
);
}
// remove resources
delete
(
*
it
).
pVoutWindow
;
delete
it
->
pVoutWindow
;
m_SavedWndVec
.
erase
(
it
);
break
;
}
...
...
@@ -257,15 +257,15 @@ void VoutManager::releaseWnd( vout_window_t* pWnd )
void
VoutManager
::
setSizeWnd
(
vout_window_t
*
pWnd
,
int
width
,
int
height
)
{
msg_Dbg
(
pWnd
,
"setSize (%
dx%d
) received from vout thread"
,
msg_Dbg
(
pWnd
,
"setSize (%
ix%i
) received from vout thread"
,
width
,
height
);
vector
<
SavedWnd
>::
iterator
it
;
for
(
it
=
m_SavedWndVec
.
begin
();
it
!=
m_SavedWndVec
.
end
();
++
it
)
{
if
(
(
*
it
).
pWnd
==
pWnd
)
if
(
it
->
pWnd
==
pWnd
)
{
VoutWindow
*
pVoutWindow
=
(
*
it
).
pVoutWindow
;
VoutWindow
*
pVoutWindow
=
it
->
pVoutWindow
;
pVoutWindow
->
setOriginalWidth
(
width
);
pVoutWindow
->
setOriginalHeight
(
height
);
...
...
@@ -292,7 +292,7 @@ void VoutManager::setFullscreenWnd( vout_window_t *pWnd, bool b_fullscreen )
vector
<
SavedWnd
>::
iterator
it
;
for
(
it
=
m_SavedWndVec
.
begin
();
it
!=
m_SavedWndVec
.
end
();
++
it
)
{
if
(
(
*
it
).
pWnd
==
pWnd
)
if
(
it
->
pWnd
==
pWnd
)
{
VoutWindow
*
pVoutWindow
=
it
->
pVoutWindow
;
configureFullscreen
(
*
pVoutWindow
);
...
...
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