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
3d24634c
Commit
3d24634c
authored
Jan 23, 2006
by
Damien Fouilleul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
plugin.cpp, oleobject.cpp: fix for ShowDisplay/Visible on activation
vlccontrol.cpp: fixed small mem leak
parent
22f28306
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
8 deletions
+14
-8
activex/oleobject.cpp
activex/oleobject.cpp
+2
-2
activex/plugin.cpp
activex/plugin.cpp
+11
-6
activex/vlccontrol.cpp
activex/vlccontrol.cpp
+1
-0
No files found.
activex/oleobject.cpp
View file @
3d24634c
...
...
@@ -163,8 +163,8 @@ HRESULT VLCOleObject::doInPlaceActivate(LPMSG lpMsg, LPOLECLIENTSITE pActiveSite
p_inPlaceSite
->
Release
();
}
pActiveSite
->
ShowObject
();
_p_instance
->
setVisible
(
TRUE
);
if
(
_p_instance
->
getVisible
()
)
pActiveSite
->
ShowObject
(
);
if
(
NULL
!=
lpMsg
)
{
...
...
activex/plugin.cpp
View file @
3d24634c
...
...
@@ -546,7 +546,7 @@ HRESULT VLCPlugin::onLoad(void)
** is the URL of the page the plugin is embedded into. Hence, if the MRL
** is a relative URL, we should end up with an absolute URL
*/
IOleClientSite
*
pClientSite
;
LPOLECLIENTSITE
pClientSite
;
if
(
SUCCEEDED
(
vlcOleObject
->
GetClientSite
(
&
pClientSite
))
&&
(
NULL
!=
pClientSite
)
)
{
IBindCtx
*
pBC
=
0
;
...
...
@@ -776,7 +776,7 @@ HRESULT VLCPlugin::onActivateInPlace(LPMSG lpMesg, HWND hwndParent, LPCRECT lprc
SetWindowLongPtr
(
_videownd
,
GWLP_USERDATA
,
reinterpret_cast
<
LONG_PTR
>
(
this
));
if
(
getVisible
()
)
ShowWindow
(
_inplacewnd
,
SW_SHOW
NORMAL
);
ShowWindow
(
_inplacewnd
,
SW_SHOW
);
/* set internal video width and height */
vlc_value_t
val
;
...
...
@@ -813,10 +813,15 @@ HRESULT VLCPlugin::onInPlaceDeactivate(void)
void
VLCPlugin
::
setVisible
(
BOOL
fVisible
)
{
_b_visible
=
fVisible
;
if
(
isInPlaceActive
()
)
ShowWindow
(
_inplacewnd
,
fVisible
?
SW_SHOWNORMAL
:
SW_HIDE
);
firePropChangedEvent
(
DISPID_Visible
);
if
(
fVisible
!=
_b_visible
)
{
_b_visible
=
fVisible
;
if
(
isInPlaceActive
()
)
{
ShowWindow
(
_inplacewnd
,
fVisible
?
SW_SHOW
:
SW_HIDE
);
}
firePropChangedEvent
(
DISPID_Visible
);
}
};
void
VLCPlugin
::
setFocus
(
BOOL
fFocus
)
...
...
activex/vlccontrol.cpp
View file @
3d24634c
...
...
@@ -371,6 +371,7 @@ STDMETHODIMP VLCControl::setVariable(BSTR name, VARIANT value)
hr
=
VariantChangeType
(
&
arg
,
&
value
,
0
,
VT_BSTR
);
if
(
SUCCEEDED
(
hr
)
)
{
i_type
=
VLC_VAR_STRING
;
val
.
psz_string
=
CStrFromBSTR
(
codePage
,
V_BSTR
(
&
arg
));
VariantClear
(
&
arg
);
}
...
...
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