Skip to content

Commit

Permalink
Updated the addon to make it compatible with OF 0.9.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
smallfly committed Sep 2, 2015
1 parent 2edbfc1 commit 9b011e5
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 159 deletions.
13 changes: 0 additions & 13 deletions ofxVideoRecorderExample/Makefile

This file was deleted.

142 changes: 0 additions & 142 deletions ofxVideoRecorderExample/config.make

This file was deleted.

6 changes: 3 additions & 3 deletions ofxVideoRecorderExample/src/ofApp.cpp
Expand Up @@ -38,7 +38,7 @@ void ofApp::exit() {
void ofApp::update(){
vidGrabber.update();
if(vidGrabber.isFrameNew() && bRecording){
bool success = vidRecorder.addFrame(vidGrabber.getPixelsRef());
bool success = vidRecorder.addFrame(vidGrabber.getPixels());
if (!success) {
ofLogWarning("This frame was not added!");
}
Expand Down Expand Up @@ -67,13 +67,13 @@ void ofApp::draw(){
<< (bRecording?"close current video file: c":"") << endl;

ofSetColor(0,0,0,100);
ofRect(0, 0, 260, 75);
ofDrawRectangle(0, 0, 260, 75);
ofSetColor(255, 255, 255);
ofDrawBitmapString(ss.str(),15,15);

if(bRecording){
ofSetColor(255, 0, 0);
ofCircle(ofGetWidth() - 20, 20, 5);
ofDrawCircle(ofGetWidth() - 20, 20, 5);
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/ofxVideoRecorder.cpp
Expand Up @@ -72,7 +72,7 @@ void ofxVideoDataWriterThread::threadedFunction(){
{
errno = 0;

int b_written = ::write(fd, ((char *)frame->getPixels())+b_offset, b_remaining);
int b_written = ::write(fd, ((char *)frame->getData())+b_offset, b_remaining);

if(b_written > 0){
b_remaining -= b_written;
Expand Down

0 comments on commit 9b011e5

Please sign in to comment.