Skip to content

Commit

Permalink
Merge pull request #10 from johnboiles/master
Browse files Browse the repository at this point in the history
Fix two small issues
  • Loading branch information
lvsti authored Mar 27, 2020
2 parents c22ebc2 + 1779488 commit c759f19
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
BuildResults
xcuserdata
xcuserdata
.DS_Store

Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

// Internal Includes
#include "CMIO_DPA_Sample_Server_VCamInputStream.h"
#include "CAHostTimeBase.h"

namespace CMIO { namespace DPA { namespace Sample { namespace Server
{
Expand Down Expand Up @@ -83,8 +84,8 @@ namespace CMIO { namespace DPA { namespace Sample { namespace Server
fseek(vcamDevice->mSequenceFile, (vcamDevice->mFrameIndex % vcamDevice->mFrameCount) * vcamDevice->mFrameSize, SEEK_SET);
fread(framebuffer, 1, vcamDevice->mFrameSize, vcamDevice->mSequenceFile);
++vcamDevice->mFrameIndex;

UInt64 vbiTime = vcamDevice->mInputStream->GetTimecode() * 1000000000.0;
// Hack because it seems that vcamDevice->mInputStream->GetTimecode() is always 0
UInt64 vbiTime = CAHostTimeBase::GetCurrentTimeInNanos();
vcamDevice->mInputStream->FrameArrived(vcamDevice->mFrameSize, framebuffer, vbiTime);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<string>com.apple.cmio.DPA.SampleVCam</string>
<key>ProgramArguments</key>
<array>
<string>/Library/CoreMediaIO/Plug-Ins/DAL/Sample.plugin/Contents/Resources/SampleVCamAssistant</string>
<string>/Library/CoreMediaIO/Plug-Ins/DAL/SampleVCam.plugin/Contents/Resources/SampleVCamAssistant</string>
</array>
<key>MachServices</key>
<dict>
Expand Down

0 comments on commit c759f19

Please sign in to comment.