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
f20d5bd9
Commit
f20d5bd9
authored
Oct 30, 2006
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove excess whitespace
parent
c261c25f
Changes
16
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
48 additions
and
61 deletions
+48
-61
activex/connectioncontainer.cpp
activex/connectioncontainer.cpp
+1
-1
activex/main.cpp
activex/main.cpp
+5
-6
activex/objectsafety.h
activex/objectsafety.h
+5
-5
activex/oleinplaceobject.h
activex/oleinplaceobject.h
+2
-3
activex/oleobject.cpp
activex/oleobject.cpp
+3
-3
activex/oleobject.h
activex/oleobject.h
+1
-1
activex/persistpropbag.cpp
activex/persistpropbag.cpp
+0
-1
activex/persiststreaminit.cpp
activex/persiststreaminit.cpp
+1
-1
activex/persiststreaminit.h
activex/persiststreaminit.h
+0
-1
activex/plugin.cpp
activex/plugin.cpp
+23
-24
activex/plugin.h
activex/plugin.h
+1
-2
activex/provideclassinfo.cpp
activex/provideclassinfo.cpp
+0
-1
activex/provideclassinfo.h
activex/provideclassinfo.h
+0
-1
activex/supporterrorinfo.cpp
activex/supporterrorinfo.cpp
+0
-1
activex/utils.cpp
activex/utils.cpp
+4
-5
activex/vlccontrol.h
activex/vlccontrol.h
+2
-5
No files found.
activex/connectioncontainer.cpp
View file @
f20d5bd9
...
...
@@ -35,7 +35,7 @@ struct VLCEnumConnectionsDereference
CONNECTDATA
operator
()(
const
map
<
DWORD
,
LPUNKNOWN
>::
iterator
&
i
)
{
CONNECTDATA
cd
;
cd
.
dwCookie
=
i
->
first
;
cd
.
pUnk
=
i
->
second
;
return
cd
;
...
...
activex/main.cpp
View file @
f20d5bd9
...
...
@@ -193,9 +193,9 @@ static HRESULT RegisterClassID(HKEY hParent, REFCLSID rclsid, unsigned int versi
keyClose
(
keySetDef
(
keyCreate
(
hProgKey
,
"CLSID"
),
psz_CLSID
,
GUID_STRLEN
));
//hSubKey = keyClose(keyCreate(hBaseKey, "Insertable"));
RegCloseKey
(
hProgKey
);
}
if
(
isDefault
)
...
...
@@ -209,7 +209,7 @@ static HRESULT RegisterClassID(HKEY hParent, REFCLSID rclsid, unsigned int versi
keyClose
(
keySetDef
(
keyCreate
(
hProgKey
,
"CLSID"
),
psz_CLSID
,
GUID_STRLEN
));
keyClose
(
keySetDef
(
keyCreate
(
hProgKey
,
"CurVer"
),
progId
));
}
...
...
@@ -298,14 +298,14 @@ STDAPI DllRegisterServer(VOID)
char
DllPath
[
MAX_PATH
];
DWORD
DllPathLen
=
GetModuleFileNameA
(
h_instance
,
DllPath
,
sizeof
(
DllPath
))
;
if
(
0
==
DllPathLen
)
if
(
0
==
DllPathLen
)
return
E_UNEXPECTED
;
HKEY
hBaseKey
;
if
(
ERROR_SUCCESS
!=
RegOpenKeyExA
(
HKEY_CLASSES_ROOT
,
"CLSID"
,
0
,
KEY_CREATE_SUB_KEY
,
&
hBaseKey
)
)
return
SELFREG_E_CLASS
;
RegisterClassID
(
hBaseKey
,
CLSID_VLCPlugin
,
1
,
FALSE
,
DllPath
,
DllPathLen
);
RegisterClassID
(
hBaseKey
,
CLSID_VLCPlugin2
,
2
,
TRUE
,
DllPath
,
DllPathLen
);
...
...
@@ -459,4 +459,3 @@ STDAPI_(BOOL) DllMain(HANDLE hModule, DWORD fdwReason, LPVOID lpReserved )
};
#endif
activex/objectsafety.h
View file @
f20d5bd9
...
...
@@ -42,13 +42,13 @@ extern "C" const IID IID_IObjectSafety;
struct
IObjectSafety
:
public
IUnknown
{
virtual
STDMETHODIMP
GetInterfaceSafetyOptions
(
virtual
STDMETHODIMP
GetInterfaceSafetyOptions
(
REFIID
riid
,
DWORD
__RPC_FAR
*
pdwSupportedOptions
,
DWORD
__RPC_FAR
*
pdwEnabledOptions
)
=
0
;
virtual
STDMETHODIMP
SetInterfaceSafetyOptions
(
virtual
STDMETHODIMP
SetInterfaceSafetyOptions
(
REFIID
riid
,
DWORD
dwSupportedOptions
,
DWORD
dwOptionSetMask
...
...
@@ -83,19 +83,19 @@ public:
STDMETHODIMP_
(
ULONG
)
Release
(
void
)
{
return
_p_instance
->
pUnkOuter
->
Release
();
};
// IUnknown methods
STDMETHODIMP
GetInterfaceSafetyOptions
(
STDMETHODIMP
GetInterfaceSafetyOptions
(
REFIID
riid
,
DWORD
*
pdwSupportedOptions
,
DWORD
*
pdwEnabledOptions
);
STDMETHODIMP
SetInterfaceSafetyOptions
(
STDMETHODIMP
SetInterfaceSafetyOptions
(
REFIID
riid
,
DWORD
dwOptionSetMask
,
DWORD
dwEnabledOptions
);
private:
private:
VLCPlugin
*
_p_instance
;
};
...
...
activex/oleinplaceobject.h
View file @
f20d5bd9
...
...
@@ -35,10 +35,10 @@ public:
STDMETHODIMP
QueryInterface
(
REFIID
riid
,
void
**
ppv
)
{
if
(
NULL
==
ppv
)
return
E_POINTER
;
return
E_POINTER
;
if
(
(
IID_IUnknown
==
riid
)
||
(
IID_IOleWindow
==
riid
)
||
(
IID_IOleInPlaceObject
==
riid
)
)
||
(
IID_IOleInPlaceObject
==
riid
)
)
{
AddRef
();
*
ppv
=
reinterpret_cast
<
LPVOID
>
(
this
);
...
...
@@ -66,4 +66,3 @@ private:
};
#endif
activex/oleobject.cpp
View file @
f20d5bd9
...
...
@@ -30,7 +30,7 @@
using
namespace
std
;
VLCOleObject
::
VLCOleObject
(
VLCPlugin
*
p_instance
)
:
_p_clientsite
(
NULL
),
_p_instance
(
p_instance
)
_p_clientsite
(
NULL
),
_p_instance
(
p_instance
)
{
CreateOleAdviseHolder
(
&
_p_advise_holder
);
};
...
...
@@ -242,7 +242,7 @@ STDMETHODIMP VLCOleObject::GetClientSite(LPOLECLIENTSITE *ppClientSite)
{
if
(
NULL
==
ppClientSite
)
return
E_POINTER
;
if
(
NULL
!=
_p_clientsite
)
_p_clientsite
->
AddRef
();
...
...
@@ -295,7 +295,7 @@ STDMETHODIMP VLCOleObject::GetMoniker(DWORD dwAssign, DWORD dwWhichMoniker, LPMO
{
if
(
NULL
!=
_p_clientsite
)
return
_p_clientsite
->
GetMoniker
(
dwAssign
,
dwWhichMoniker
,
ppMoniker
);
return
E_UNEXPECTED
;
};
...
...
activex/oleobject.h
View file @
f20d5bd9
...
...
@@ -37,7 +37,7 @@ public:
if
(
NULL
==
ppv
)
return
E_POINTER
;
if
(
(
IID_IUnknown
==
riid
)
||
(
IID_IOleObject
==
riid
)
)
||
(
IID_IOleObject
==
riid
)
)
{
AddRef
();
*
ppv
=
reinterpret_cast
<
LPVOID
>
(
this
);
...
...
activex/persistpropbag.cpp
View file @
f20d5bd9
...
...
@@ -243,4 +243,3 @@ STDMETHODIMP VLCPersistPropertyBag::Save(LPPROPERTYBAG pPropBag, BOOL fClearDirt
return
S_OK
;
};
activex/persiststreaminit.cpp
View file @
f20d5bd9
...
...
@@ -276,7 +276,7 @@ public:
(
*
p
.
first
).
second
=
val
.
second
;
return
S_OK
;
};
// custom methods
HRESULT
Load
(
LPSTREAM
pStm
)
...
...
activex/persiststreaminit.h
View file @
f20d5bd9
...
...
@@ -69,4 +69,3 @@ private:
};
#endif
activex/plugin.cpp
View file @
f20d5bd9
...
...
@@ -118,7 +118,7 @@ VLCPluginClass::VLCPluginClass(LONG *p_class_ref, HINSTANCE hInstance, REFCLSID
wClass
.
hbrBackground
=
NULL
;
wClass
.
lpszMenuName
=
NULL
;
wClass
.
lpszClassName
=
getInPlaceWndClassName
();
_inplace_wndclass_atom
=
RegisterClass
(
&
wClass
);
}
else
...
...
@@ -138,7 +138,7 @@ VLCPluginClass::VLCPluginClass(LONG *p_class_ref, HINSTANCE hInstance, REFCLSID
wClass
.
hbrBackground
=
NULL
;
wClass
.
lpszMenuName
=
NULL
;
wClass
.
lpszClassName
=
getVideoWndClassName
();
_video_wndclass_atom
=
RegisterClass
(
&
wClass
);
}
else
...
...
@@ -570,26 +570,26 @@ HRESULT VLCPlugin::getVLC(libvlc_instance_t** pp_libvlc)
if
(
RegOpenKeyEx
(
HKEY_LOCAL_MACHINE
,
"Software
\\
VideoLAN
\\
VLC"
,
0
,
KEY_READ
,
&
h_key
)
==
ERROR_SUCCESS
)
{
if
(
RegQueryValueEx
(
h_key
,
"InstallDir"
,
0
,
&
i_type
,
(
LPBYTE
)
p_data
,
&
i_data
)
==
ERROR_SUCCESS
)
{
if
(
i_type
==
REG_SZ
)
{
strcat
(
p_data
,
"
\\
plugins"
);
ppsz_argv
[
ppsz_argc
++
]
=
"--plugin-path"
;
ppsz_argv
[
ppsz_argc
++
]
=
p_data
;
}
}
RegCloseKey
(
h_key
);
if
(
RegQueryValueEx
(
h_key
,
"InstallDir"
,
0
,
&
i_type
,
(
LPBYTE
)
p_data
,
&
i_data
)
==
ERROR_SUCCESS
)
{
if
(
i_type
==
REG_SZ
)
{
strcat
(
p_data
,
"
\\
plugins"
);
ppsz_argv
[
ppsz_argc
++
]
=
"--plugin-path"
;
ppsz_argv
[
ppsz_argc
++
]
=
p_data
;
}
}
RegCloseKey
(
h_key
);
}
char
p_path
[
MAX_PATH
+
1
];
DWORD
len
=
GetModuleFileNameA
(
DllGetModule
(),
p_path
,
sizeof
(
p_path
));
if
(
len
>
0
)
{
p_path
[
len
]
=
'\0'
;
ppsz_argv
[
0
]
=
p_path
;
}
char
p_path
[
MAX_PATH
+
1
];
DWORD
len
=
GetModuleFileNameA
(
DllGetModule
(),
p_path
,
sizeof
(
p_path
));
if
(
len
>
0
)
{
p_path
[
len
]
=
'\0'
;
ppsz_argv
[
0
]
=
p_path
;
}
// make sure plugin isn't affected with VLC single instance mode
ppsz_argv
[
ppsz_argc
++
]
=
"--no-one-instance"
;
...
...
@@ -631,7 +631,7 @@ HRESULT VLCPlugin::getVLC(libvlc_instance_t** pp_libvlc)
{
libvlc_audio_set_mute
(
_p_libvlc
,
TRUE
,
NULL
);
}
// initial playlist item
if
(
SysStringLen
(
_bstr_mrl
)
>
0
)
{
...
...
@@ -803,7 +803,7 @@ HRESULT VLCPlugin::onActivateInPlace(LPMSG lpMesg, HWND hwndParent, LPCRECT lprc
/*
** record keeping of control geometry within container
*/
*/
_posRect
=
posRect
;
/*
...
...
@@ -905,7 +905,7 @@ HRESULT VLCPlugin::onInPlaceDeactivate(void)
_videownd
=
NULL
;
DestroyWindow
(
_inplacewnd
);
_inplacewnd
=
NULL
;
return
S_OK
;
};
...
...
@@ -1162,4 +1162,3 @@ void VLCPlugin::fireOnStopEvent(void)
DISPPARAMS
dispparamsNoArgs
=
{
NULL
,
NULL
,
0
,
0
};
vlcConnectionPointContainer
->
fireEvent
(
DISPID_StopEvent
,
&
dispparamsNoArgs
);
};
activex/plugin.h
View file @
f20d5bd9
...
...
@@ -164,7 +164,7 @@ public:
_p_pict
->
AddRef
();
return
_p_pict
;
};
BOOL
hasFocus
(
void
);
void
setFocus
(
BOOL
fFocus
);
...
...
@@ -272,4 +272,3 @@ private:
};
#endif
activex/provideclassinfo.cpp
View file @
f20d5bd9
...
...
@@ -57,4 +57,3 @@ STDMETHODIMP VLCProvideClassInfo::GetGUID(DWORD dwGuidKind, GUID *pGUID)
return
S_OK
;
};
activex/provideclassinfo.h
View file @
f20d5bd9
...
...
@@ -64,4 +64,3 @@ private:
};
#endif
activex/supporterrorinfo.cpp
View file @
f20d5bd9
...
...
@@ -67,4 +67,3 @@ void VLCSupportErrorInfo::setErrorInfo(LPCOLESTR progid, REFIID riid, const char
SysFreeString
(
bstrDescription
);
}
};
activex/utils.cpp
View file @
f20d5bd9
...
...
@@ -126,11 +126,11 @@ HRESULT GetObjectProperty(LPUNKNOWN object, DISPID dispID, VARIANT& v)
HDC
CreateDevDC
(
DVTARGETDEVICE
*
ptd
)
{
HDC
hdc
=
NULL
;
if
(
NULL
==
ptd
)
HDC
hdc
=
NULL
;
if
(
NULL
==
ptd
)
{
hdc
=
CreateDC
(
TEXT
(
"DISPLAY"
),
NULL
,
NULL
,
NULL
);
}
hdc
=
CreateDC
(
TEXT
(
"DISPLAY"
),
NULL
,
NULL
,
NULL
);
}
else
{
LPDEVNAMES
lpDevNames
;
...
...
@@ -184,4 +184,3 @@ void HimetricFromDP(HDC hdc, LPPOINT pt, int count)
++
pt
;
}
};
activex/vlccontrol.h
View file @
f20d5bd9
...
...
@@ -27,7 +27,6 @@
class
VLCControl
:
public
IVLCControl
{
public:
VLCControl
(
VLCPlugin
*
p_instance
)
:
_p_instance
(
p_instance
),
_p_typeinfo
(
NULL
)
{};
...
...
@@ -92,7 +91,7 @@ public:
STDMETHODIMP
put_AutoLoop
(
VARIANT_BOOL
autoloop
);
STDMETHODIMP
get_AutoPlay
(
VARIANT_BOOL
*
autoplay
);
STDMETHODIMP
put_AutoPlay
(
VARIANT_BOOL
autoplay
);
static
HRESULT
CreateTargetOptions
(
int
codePage
,
VARIANT
*
options
,
char
***
cOptions
,
int
*
cOptionCount
);
static
void
FreeTargetOptions
(
char
**
cOptions
,
int
cOptionCount
);
...
...
@@ -102,8 +101,6 @@ private:
VLCPlugin
*
_p_instance
;
ITypeInfo
*
_p_typeinfo
;
};
#endif
#endif
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