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
f4293e74
Commit
f4293e74
authored
Jun 04, 2015
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dshow: remove dead code
parent
d08a9136
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
73 deletions
+0
-73
include/vlc_plugin.h
include/vlc_plugin.h
+0
-3
modules/access/dshow/dshow.cpp
modules/access/dshow/dshow.cpp
+0
-70
No files found.
include/vlc_plugin.h
View file @
f4293e74
...
...
@@ -484,9 +484,6 @@ VLC_METADATA_EXPORTS
#define change_float_range( minv, maxv ) \
vlc_config_set (VLC_CONFIG_RANGE, (double)(minv), (double)(maxv));
#define change_action_add( pf_action, text ) \
(void)(pf_action, text);
/* For options that are saved but hidden from the preferences panel */
#define change_private() \
vlc_config_set (VLC_CONFIG_PRIVATE);
...
...
modules/access/dshow/dshow.cpp
View file @
f4293e74
...
...
@@ -74,8 +74,6 @@ static size_t EnumDeviceCaps( vlc_object_t *, IBaseFilter *,
static
bool
ConnectFilters
(
vlc_object_t
*
,
access_sys_t
*
,
IBaseFilter
*
,
CaptureFilter
*
);
static
int
FindDevices
(
vlc_object_t
*
,
const
char
*
,
char
***
,
char
***
);
static
int
ConfigDevicesCallback
(
vlc_object_t
*
,
char
const
*
,
vlc_value_t
,
vlc_value_t
,
void
*
);
static
void
ShowPropertyPage
(
IUnknown
*
);
static
void
ShowDeviceProperties
(
vlc_object_t
*
,
ICaptureGraphBuilder2
*
,
...
...
@@ -224,11 +222,9 @@ vlc_module_begin ()
add_string
(
CFG_PREFIX
"vdev"
,
NULL
,
VDEV_TEXT
,
VDEV_LONGTEXT
,
false
)
change_string_cb
(
FindDevices
)
change_action_add
(
ConfigDevicesCallback
,
N_
(
"Configure"
)
)
add_string
(
CFG_PREFIX
"adev"
,
NULL
,
ADEV_TEXT
,
ADEV_LONGTEXT
,
false
)
change_string_cb
(
FindDevices
)
change_action_add
(
ConfigDevicesCallback
,
N_
(
"Configure"
)
)
add_string
(
CFG_PREFIX
"size"
,
NULL
,
SIZE_TEXT
,
SIZE_LONGTEXT
,
false
)
change_safe
()
...
...
@@ -2022,72 +2018,6 @@ static int FindDevices( vlc_object_t *p_this, const char *psz_name,
return
count
;
}
static
int
ConfigDevicesCallback
(
vlc_object_t
*
p_this
,
char
const
*
psz_name
,
vlc_value_t
newval
,
vlc_value_t
,
void
*
)
{
module_config_t
*
p_item
;
bool
b_audio
=
false
;
char
*
psz_device
=
NULL
;
int
i_ret
=
VLC_SUCCESS
;
if
(
FAILED
(
CoInitializeEx
(
NULL
,
COINIT_MULTITHREADED
))
&&
FAILED
(
CoInitializeEx
(
NULL
,
COINIT_APARTMENTTHREADED
))
)
return
VLC_EGENERIC
;
if
(
!
EMPTY_STR
(
newval
.
psz_string
)
)
psz_device
=
strdup
(
newval
.
psz_string
);
p_item
=
config_FindConfig
(
p_this
,
psz_name
);
if
(
!
p_item
)
{
free
(
psz_device
);
CoUninitialize
();
return
VLC_SUCCESS
;
}
if
(
!
strcmp
(
psz_name
,
CFG_PREFIX
"adev"
)
)
b_audio
=
true
;
string
devicename
;
if
(
psz_device
)
{
devicename
=
psz_device
;
}
else
{
/* If no device name was specified, pick the 1st one */
list
<
string
>
list_devices
;
/* Enumerate devices */
FindCaptureDevice
(
p_this
,
NULL
,
&
list_devices
,
b_audio
);
if
(
list_devices
.
empty
()
)
{
CoUninitialize
();
return
VLC_EGENERIC
;
}
devicename
=
*
list_devices
.
begin
();
}
IBaseFilter
*
p_device_filter
=
FindCaptureDevice
(
p_this
,
&
devicename
,
NULL
,
b_audio
);
if
(
p_device_filter
)
{
ShowPropertyPage
(
p_device_filter
);
p_device_filter
->
Release
();
}
else
{
msg_Err
(
p_this
,
"didn't find device: %s"
,
devicename
.
c_str
()
);
i_ret
=
VLC_EGENERIC
;
}
CoUninitialize
();
free
(
psz_device
);
return
i_ret
;
}
/*****************************************************************************
* Properties
*****************************************************************************/
...
...
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