Skip to content

Commit

Permalink
d2vsource: Ask for a sample if we get a NULL frame
Browse files Browse the repository at this point in the history
The cache currently hies this evil bug, so we need more
sources to help debug it. This is obviously a horrible
hack.

Signed-off-by: Derek Buitenhuis <[email protected]>
  • Loading branch information
dwbuiten committed Dec 1, 2013
1 parent 6eef9d0 commit 56176e9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions vs/d2vsource.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ const VSFrameRef *VS_CC d2vGetFrame(int n, int activationReason, void **instance

/* Grab our direct-rendered frame. */
s = (VSFrameRef *) d->frame->opaque;
if (!s) {
vsapi->setFilterError("Seek pattern broke d2vsource! Please send a sample.", frameCtx);
return NULL;
}

/* If our width and height are the same, just return it. */
if (d->vi.width == d->aligned_width && d->vi.height == d->aligned_height) {
Expand Down

0 comments on commit 56176e9

Please sign in to comment.