Commit d171dda1 authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

qtcapture: Don't use the pts provided by qtkit. I don't get how it works for now.

parent 303a7cc1
......@@ -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 );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment