Skip to content

Commit

Permalink
Remove Release() method not needed thanks to Close()
Browse files Browse the repository at this point in the history
Signed-off-by: deadprogram <[email protected]>
  • Loading branch information
deadprogram committed Oct 1, 2017
1 parent a47fcad commit 1b84c89
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 10 deletions.
4 changes: 0 additions & 4 deletions videoio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@ int VideoCapture_OpenDevice(VideoCapture v, int device) {
return v->open(device);
}

void VideoCapture_Release(VideoCapture v) {
v->release();
}

void VideoCapture_Set(VideoCapture v, int prop, int param) {
v->set(prop, param);
}
Expand Down
5 changes: 0 additions & 5 deletions videoio.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,6 @@ func (v *VideoCapture) Close() error {
return nil
}

// Release video capture object.
func (v *VideoCapture) Release() {
C.VideoCapture_Release(v.p)
}

// Set parameter with property (=key).
func (v *VideoCapture) Set(prop int, param int) {
C.VideoCapture_Set(v.p, C.int(prop), C.int(param))
Expand Down
1 change: 0 additions & 1 deletion videoio.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ VideoCapture VideoCapture_New();
void VideoCapture_Close(VideoCapture v);
int VideoCapture_Open(VideoCapture v, const char* uri);
int VideoCapture_OpenDevice(VideoCapture v, int device);
void VideoCapture_Release(VideoCapture v);
void VideoCapture_Set(VideoCapture v, int prop, int param);
int VideoCapture_IsOpened(VideoCapture v);
int VideoCapture_Read(VideoCapture v, Mat buf);
Expand Down

0 comments on commit 1b84c89

Please sign in to comment.