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
9eca6a12
Commit
9eca6a12
authored
Jan 26, 2004
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/access/dshow/*: implemented a few more things.
parent
3724ca76
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
10 deletions
+19
-10
modules/access/dshow/filter.cpp
modules/access/dshow/filter.cpp
+17
-9
modules/access/dshow/filter.h
modules/access/dshow/filter.h
+2
-1
No files found.
modules/access/dshow/filter.cpp
View file @
9eca6a12
...
...
@@ -2,7 +2,7 @@
* filter.c : DirectShow access module for vlc
*****************************************************************************
* Copyright (C) 2002 VideoLAN
* $Id: filter.cpp,v 1.1
0 2003/12/15 00:47:18
gbazin Exp $
* $Id: filter.cpp,v 1.1
1 2004/01/26 18:24:17
gbazin Exp $
*
* Author: Gildas Bazin <gbazin@netcourrier.com>
*
...
...
@@ -396,21 +396,21 @@ STDMETHODIMP CapturePin::EndOfStream( void )
#ifdef DEBUG_DSHOW
msg_Dbg
(
p_input
,
"CapturePin::EndOfStream"
);
#endif
return
E_NOTIMPL
;
return
S_OK
;
}
STDMETHODIMP
CapturePin
::
BeginFlush
(
void
)
{
#ifdef DEBUG_DSHOW
msg_Dbg
(
p_input
,
"CapturePin::BeginFlush"
);
#endif
return
E_NOTIMPL
;
return
S_OK
;
}
STDMETHODIMP
CapturePin
::
EndFlush
(
void
)
{
#ifdef DEBUG_DSHOW
msg_Dbg
(
p_input
,
"CapturePin::EndFlush"
);
#endif
return
E_NOTIMPL
;
return
S_OK
;
}
STDMETHODIMP
CapturePin
::
NewSegment
(
REFERENCE_TIME
tStart
,
REFERENCE_TIME
tStop
,
...
...
@@ -419,7 +419,7 @@ STDMETHODIMP CapturePin::NewSegment( REFERENCE_TIME tStart,
#ifdef DEBUG_DSHOW
msg_Dbg
(
p_input
,
"CapturePin::NewSegment"
);
#endif
return
E_NOTIMPL
;
return
S_OK
;
}
/* IMemInputPin methods */
...
...
@@ -510,7 +510,7 @@ STDMETHODIMP CapturePin::ReceiveCanBlock( void )
CaptureFilter
::
CaptureFilter
(
input_thread_t
*
_p_input
,
AM_MEDIA_TYPE
mt
)
:
p_input
(
_p_input
),
p_pin
(
new
CapturePin
(
_p_input
,
this
,
mt
)
),
media_type
(
mt
),
i_ref
(
1
)
media_type
(
mt
),
state
(
State_Stopped
),
i_ref
(
1
)
{
}
...
...
@@ -591,9 +591,11 @@ STDMETHODIMP CaptureFilter::GetClassID(CLSID *pClsID)
STDMETHODIMP
CaptureFilter
::
GetState
(
DWORD
dwMSecs
,
FILTER_STATE
*
State
)
{
#ifdef DEBUG_DSHOW
msg_Dbg
(
p_input
,
"CaptureFilter::GetState
"
);
msg_Dbg
(
p_input
,
"CaptureFilter::GetState
%i"
,
state
);
#endif
return
E_NOTIMPL
;
*
State
=
state
;
return
S_OK
;
};
STDMETHODIMP
CaptureFilter
::
SetSyncSource
(
IReferenceClock
*
pClock
)
{
...
...
@@ -601,7 +603,7 @@ STDMETHODIMP CaptureFilter::SetSyncSource(IReferenceClock *pClock)
msg_Dbg
(
p_input
,
"CaptureFilter::SetSyncSource"
);
#endif
return
NOERROR
;
return
S_OK
;
};
STDMETHODIMP
CaptureFilter
::
GetSyncSource
(
IReferenceClock
**
pClock
)
{
...
...
@@ -617,6 +619,8 @@ STDMETHODIMP CaptureFilter::Stop()
#ifdef DEBUG_DSHOW
msg_Dbg
(
p_input
,
"CaptureFilter::Stop"
);
#endif
state
=
State_Stopped
;
return
S_OK
;
};
STDMETHODIMP
CaptureFilter
::
Pause
()
...
...
@@ -624,6 +628,8 @@ STDMETHODIMP CaptureFilter::Pause()
#ifdef DEBUG_DSHOW
msg_Dbg
(
p_input
,
"CaptureFilter::Pause"
);
#endif
state
=
State_Paused
;
return
S_OK
;
};
STDMETHODIMP
CaptureFilter
::
Run
(
REFERENCE_TIME
tStart
)
...
...
@@ -631,6 +637,8 @@ STDMETHODIMP CaptureFilter::Run(REFERENCE_TIME tStart)
#ifdef DEBUG_DSHOW
msg_Dbg
(
p_input
,
"CaptureFilter::Run"
);
#endif
state
=
State_Running
;
return
S_OK
;
};
...
...
modules/access/dshow/filter.h
View file @
9eca6a12
...
...
@@ -2,7 +2,7 @@
* filter.h : DirectShow access module for vlc
*****************************************************************************
* Copyright (C) 2002 VideoLAN
* $Id: filter.h,v 1.
4 2003/12/02 23:03:31
gbazin Exp $
* $Id: filter.h,v 1.
5 2004/01/26 18:24:17
gbazin Exp $
*
* Author: Gildas Bazin <gbazin@netcourrier.com>
*
...
...
@@ -128,6 +128,7 @@ class CaptureFilter : public IBaseFilter
CapturePin
*
p_pin
;
IFilterGraph
*
p_graph
;
AM_MEDIA_TYPE
media_type
;
FILTER_STATE
state
;
long
i_ref
;
...
...
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