summaryrefslogtreecommitdiff
path: root/modules/dshow/dshow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/dshow/dshow.cpp')
-rw-r--r--modules/dshow/dshow.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/dshow/dshow.cpp b/modules/dshow/dshow.cpp
index d081f69..46aef3e 100644
--- a/modules/dshow/dshow.cpp
+++ b/modules/dshow/dshow.cpp
@@ -99,12 +99,13 @@ public:
STDMETHOD(BufferCB) (double sample_time, BYTE *buf, long buf_len)
{
struct vidframe vidframe;
+ uint64_t timestamp = sample_time * VIDEO_TIMEBASE;
/* XXX: should be VID_FMT_BGR24 */
vidframe_init_buf(&vidframe, VID_FMT_RGB32, &src->size, buf);
if (src->frameh)
- src->frameh(&vidframe, src->arg);
+ src->frameh(&vidframe, timestamp, src->arg);
return S_OK;
}