[vlc-devel] commit: qtcapture: Don't use the pts provided by qtkit. I don' t get how it works for now. (Pierre d'Herbemont )
git version control
git at videolan.org
Mon May 26 03:09:42 CEST 2008
vlc | branch: master | Pierre d'Herbemont <pdherbemont at videolan.org> | Mon May 26 03:10:59 2008 +0200| [d171dda10a7eece56faeeca851c2d3dd8bd664ea]
qtcapture: Don't use the pts provided by qtkit. I don't get how it works for now.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d171dda10a7eece56faeeca851c2d3dd8bd664ea
---
modules/access/qtcapture.m | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/modules/access/qtcapture.m b/modules/access/qtcapture.m
index 661016f..d884369 100644
--- a/modules/access/qtcapture.m
+++ b/modules/access/qtcapture.m
@@ -105,7 +105,7 @@ vlc_module_end();
imageBufferToRelease = currentImageBuffer;
currentImageBuffer = videoFrame;
/* FIXME: is it the right PTS? */
- currentPts = [sampleBuffer presentationTime].timeValue * 1000;
+ currentPts = [sampleBuffer presentationTime].timeValue / [sampleBuffer presentationTime].timeScale;
}
CVBufferRelease(imageBufferToRelease);
}
@@ -330,7 +330,8 @@ static int Demux( demux_t *p_demux )
return 1;
}
- p_block->i_pts += mdate();
+ /* FIXME */
+ p_block->i_pts = mdate();
es_out_Control( p_demux->out, ES_OUT_SET_PCR, p_block->i_pts );
es_out_Send( p_demux->out, p_sys->p_es_video, p_block );
More information about the vlc-devel
mailing list