---
UID: NF:amstream.IMediaStreamFilter.GetCurrentStreamTime
title: IMediaStreamFilter::GetCurrentStreamTime (amstream.h)
description: Note  This interface is deprecated. New applications should not use it. The GetCurrentStreamTime method retrieves the current stream time.
old-location: dshow\imediastreamfilter_getcurrentstreamtime.htm
tech.root: DirectShow
ms.assetid: 933f83a3-600e-4897-b4df-a481d2874155
ms.date: 12/05/2018
ms.keywords: GetCurrentStreamTime, GetCurrentStreamTime method [DirectShow], GetCurrentStreamTime method [DirectShow],IMediaStreamFilter interface, IMediaStreamFilter interface [DirectShow],GetCurrentStreamTime method, IMediaStreamFilter.GetCurrentStreamTime, IMediaStreamFilter::GetCurrentStreamTime, IMediaStreamFilterGetCurrentStreamTime, amstream/IMediaStreamFilter::GetCurrentStreamTime, dshow.imediastreamfilter_getcurrentstreamtime
f1_keywords:
- amstream/IMediaStreamFilter.GetCurrentStreamTime
dev_langs:
- c++
req.header: amstream.h
req.include-header: 
req.target-type: Windows
req.target-min-winverclnt: 
req.target-min-winversvr: 
req.kmdf-ver: 
req.umdf-ver: 
req.ddi-compliance: 
req.unicode-ansi: 
req.idl: 
req.max-support: 
req.namespace: 
req.assembly: 
req.type-library: 
req.lib: 
req.dll: 
req.irql: 
topic_type:
- APIRef
- kbSyntax
api_type:
- COM
api_location:
- amstream.h
api_name:
- IMediaStreamFilter.GetCurrentStreamTime
targetos: Windows
req.typenames: 
req.redist: 
ms.custom: 19H1
---

# IMediaStreamFilter::GetCurrentStreamTime


## -description



<div class="alert"><b>Note</b>  This interface is deprecated. New applications should not use it.</div>
<div> </div>
The <b>GetCurrentStreamTime</b> method retrieves the current stream time.




## -parameters




### -param pCurrentStreamTime [out]

Pointer to a variable that receives the stream time, in 100-nanosecond units.


## -returns



Returns an <b>HRESULT</b> value. Possible values include the following.

<table>
<tr>
<th>Return code</th>
<th>Description</th>
</tr>
<tr>
<td width="40%">
<dl>
<dt><b>E_POINTER</b></dt>
</dl>
</td>
<td width="60%">
<b>NULL</b> pointer argument.

</td>
</tr>
<tr>
<td width="40%">
<dl>
<dt><b>S_FALSE</b></dt>
</dl>
</td>
<td width="60%">
The graph is not running, or there is no reference clock.

</td>
</tr>
<tr>
<td width="40%">
<dl>
<dt><b>S_OK</b></dt>
</dl>
</td>
<td width="60%">
Success.

</td>
</tr>
</table>
 




## -remarks



Stream time is defined only when the graph is running and has a reference clock. Otherwise, *<i>pCurrentStreamTime</i> is set to zero and the method returns S_FALSE.




## -see-also




<a href="https://docs.microsoft.com/windows/desktop/api/amstream/nn-amstream-imediastreamfilter">IMediaStreamFilter Interface</a>
 

 

