Skip to content

Commit a72cf3d

Browse files
Asd-gmsg7086
authored andcommitted
Properly pass frame properties for VS (#11)
1 parent 87da17c commit a72cf3d

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

include/dualsynth/ds_frame.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ struct DSFrame
8181
const VSFrameRef* copy_frames[1] {ToVSFrame()};
8282
int copy_planes[4] = {0};
8383
auto vsframe = copy ?
84-
_vsapi->newVideoFrame2(_vsformat, FrameWidth, FrameHeight, copy_frames, copy_planes, ToVSFrame(), const_cast<VSCore*>(_vscore)) :
85-
_vsapi->newVideoFrame(_vsformat, FrameWidth, FrameHeight, ToVSFrame(), const_cast<VSCore*>(_vscore));
84+
_vsapi->newVideoFrame2(_vsformat, FrameWidth, FrameHeight, copy_frames, copy_planes, _vssrc, const_cast<VSCore*>(_vscore)) :
85+
_vsapi->newVideoFrame(_vsformat, FrameWidth, FrameHeight, _vssrc, const_cast<VSCore*>(_vscore));
8686
_vsapi->freeFrame(copy_frames[0]);
8787

8888
DSFrame new_frame(vsframe, _vscore, _vsapi);
@@ -101,7 +101,7 @@ struct DSFrame
101101
DSFrame Create(DSVideoInfo vi) {
102102
planes = vi.Format.IsFamilyYUV ? planes_y : planes_r;
103103
if (_vsapi) {
104-
auto vsframe = _vsapi->newVideoFrame(vi.Format.ToVSFormat(_vscore, _vsapi), vi.Width, vi.Height, ToVSFrame(), const_cast<VSCore*>(_vscore));
104+
auto vsframe = _vsapi->newVideoFrame(vi.Format.ToVSFormat(_vscore, _vsapi), vi.Width, vi.Height, _vssrc, const_cast<VSCore*>(_vscore));
105105
DSFrame new_frame(vsframe, _vscore, _vsapi);
106106
new_frame._vsdst = vsframe;
107107
new_frame.DstPointers = new unsigned char*[Format.Planes];

0 commit comments

Comments
 (0)