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
9b85c69d
Commit
9b85c69d
authored
Jan 28, 2004
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/access/dshow/*: bug fixes.
parent
fddcb08d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
10 deletions
+14
-10
modules/access/dshow/dshow.cpp
modules/access/dshow/dshow.cpp
+4
-3
modules/access/dshow/filter.cpp
modules/access/dshow/filter.cpp
+10
-7
No files found.
modules/access/dshow/dshow.cpp
View file @
9b85c69d
...
...
@@ -2,7 +2,7 @@
* dshow.cpp : DirectShow access module for vlc
*****************************************************************************
* Copyright (C) 2002, 2003 VideoLAN
* $Id: dshow.cpp,v 1.2
5 2004/01/25 17:31:2
2 gbazin Exp $
* $Id: dshow.cpp,v 1.2
6 2004/01/28 16:46:5
2 gbazin Exp $
*
* Author: Gildas Bazin <gbazin@netcourrier.com>
*
...
...
@@ -414,17 +414,18 @@ static bool ConnectFilters( IFilterGraph *p_graph, IBaseFilter *p_filter,
{
IEnumPins
*
p_enumpins
;
IPin
*
p_output_pin
;
ULONG
i_fetched
;
if
(
S_OK
!=
p_filter
->
EnumPins
(
&
p_enumpins
)
)
return
false
;
while
(
S_OK
==
p_enumpins
->
Next
(
1
,
&
p_output_pin
,
&
i_fetched
)
)
while
(
S_OK
==
p_enumpins
->
Next
(
1
,
&
p_output_pin
,
NULL
)
)
{
if
(
S_OK
==
p_graph
->
ConnectDirect
(
p_output_pin
,
p_input_pin
,
0
)
)
{
p_output_pin
->
Release
();
p_enumpins
->
Release
();
return
true
;
}
p_output_pin
->
Release
();
}
p_enumpins
->
Release
();
...
...
modules/access/dshow/filter.cpp
View file @
9b85c69d
...
...
@@ -2,7 +2,7 @@
* filter.c : DirectShow access module for vlc
*****************************************************************************
* Copyright (C) 2002 VideoLAN
* $Id: filter.cpp,v 1.1
1 2004/01/26 18:24:17
gbazin Exp $
* $Id: filter.cpp,v 1.1
2 2004/01/28 16:46:52
gbazin Exp $
*
* Author: Gildas Bazin <gbazin@netcourrier.com>
*
...
...
@@ -777,18 +777,20 @@ STDMETHODIMP CaptureEnumPins::Next( ULONG cPins, IPin ** ppPins,
msg_Dbg
(
p_input
,
"CaptureEnumPins::Next"
);
#endif
*
pcF
etched
=
0
;
unsigned
int
i_f
etched
=
0
;
if
(
i_position
<
1
&&
cPins
>
0
)
{
IPin
*
pPin
=
p_filter
->
CustomGetPin
();
*
ppPins
=
pPin
;
pPin
->
AddRef
();
*
pcF
etched
=
1
;
i_f
etched
=
1
;
i_position
++
;
}
return
*
pcFetched
==
cPins
?
NOERROR
:
S_FALSE
;
if
(
pcFetched
)
*
pcFetched
=
i_fetched
;
return
(
i_fetched
==
cPins
)
?
S_OK
:
S_FALSE
;
};
STDMETHODIMP
CaptureEnumPins
::
Skip
(
ULONG
cPins
)
{
...
...
@@ -796,13 +798,14 @@ STDMETHODIMP CaptureEnumPins::Skip( ULONG cPins )
msg_Dbg
(
p_input
,
"CaptureEnumPins::Skip"
);
#endif
if
(
cPins
>
1
)
i_position
+=
cPins
;
if
(
i_position
>
1
)
{
return
S_FALSE
;
}
i_position
+=
cPins
;
return
NOERROR
;
return
S_OK
;
};
STDMETHODIMP
CaptureEnumPins
::
Reset
()
{
...
...
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