Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
VLC
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
15
Merge Requests
15
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
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
Steve Lhomme
VLC
Commits
c6400287
Commit
c6400287
authored
Dec 06, 2016
by
Hugo Beauzée-Luyssen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dshow: Cleanup
parent
e6056f35
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
14 deletions
+10
-14
modules/access/dshow/access.h
modules/access/dshow/access.h
+3
-6
modules/access/dshow/crossbar.cpp
modules/access/dshow/crossbar.cpp
+3
-3
modules/access/dshow/dshow.cpp
modules/access/dshow/dshow.cpp
+2
-2
modules/access/dshow/filter.h
modules/access/dshow/filter.h
+2
-3
No files found.
modules/access/dshow/access.h
View file @
c6400287
...
...
@@ -33,22 +33,19 @@
#include <wrl/client.h>
using
Microsoft
::
WRL
::
ComPtr
;
typedef
struct
dshow_stream_t
dshow_stream_t
;
/****************************************************************************
* Crossbar stuff
****************************************************************************/
#define MAX_CROSSBAR_DEPTH 10
typedef
struct
CrossbarRouteRec
struct
CrossbarRoute
{
ComPtr
<
IAMCrossbar
>
pXbar
;
LONG
VideoInputIndex
;
LONG
VideoOutputIndex
;
LONG
AudioInputIndex
;
LONG
AudioOutputIndex
;
}
CrossbarRoute
;
};
void
DeleteCrossbarRoutes
(
access_sys_t
*
);
HRESULT
FindCrossbarRoutes
(
vlc_object_t
*
,
access_sys_t
*
,
...
...
@@ -71,7 +68,7 @@ struct access_sys_t
CrossbarRoute
crossbar_routes
[
MAX_CROSSBAR_DEPTH
];
/* list of elementary streams */
std
::
vector
<
dshow_stream_t
*>
pp_streams
;
std
::
vector
<
struct
dshow_stream_t
*>
pp_streams
;
int
i_current_stream
;
/* misc properties */
...
...
modules/access/dshow/crossbar.cpp
View file @
c6400287
...
...
@@ -226,11 +226,11 @@ HRESULT FindCrossbarRoutes( vlc_object_t *p_this, access_sys_t *p_sys,
{
// remember connector type
physicalType
=
inputPinPhysicalType
;
msg_Dbg
(
p_this
,
"found existing route for output %ld (type %s) to input %ld (type %s)"
,
outputPinIndex
,
GetPhysicalPinName
(
outputPinPhysicalType
),
inputPinIndex
,
GetPhysicalPinName
(
inputPinPhysicalType
)
);
// fall through to for loop, note 'inputPinIndex' is set to the pin we are looking for
// hence, loop iteration should not wind back
...
...
@@ -241,7 +241,7 @@ HRESULT FindCrossbarRoutes( vlc_object_t *p_this, access_sys_t *p_sys,
inputPinIndex
=
0
;
}
}
//
// for all input pins
//
...
...
modules/access/dshow/dshow.cpp
View file @
c6400287
...
...
@@ -303,7 +303,7 @@ vlc_module_end ()
/*****************************************************************************
* DirectShow elementary stream descriptor
*****************************************************************************/
typedef
struct
dshow_stream_t
struct
dshow_stream_t
{
std
::
string
devicename
;
ComPtr
<
IBaseFilter
>
p_device_filter
;
...
...
@@ -323,7 +323,7 @@ typedef struct dshow_stream_t
bool
b_pts
;
std
::
deque
<
VLCMediaSample
>
samples_queue
;
}
dshow_stream_t
;
};
/*****************************************************************************
* DirectShow utility functions
...
...
modules/access/dshow/filter.h
View file @
c6400287
...
...
@@ -28,12 +28,11 @@
#include <deque>
typedef
struct
VLCMediaSample
struct
VLCMediaSample
{
ComPtr
<
IMediaSample
>
p_sample
;
mtime_t
i_timestamp
;
}
VLCMediaSample
;
};
/* */
void
WINAPI
FreeMediaType
(
AM_MEDIA_TYPE
&
mt
);
...
...
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