Skip to content

Commit

Permalink
* Revert to v1.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
chrberger committed Jul 27, 2015
1 parent 04ebf16 commit 79d9927
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions CaroloCup-CameraPlayback.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@
#include <core/wrapper/SharedMemoryFactory.h>
#include <tools/player/Player.h>

#include <GeneratedHeaders_CoreData.h>
#include <core/data/image/SharedImage.h>

using namespace std;

// We add some of OpenDaVINCI's namespaces for the sake of readability.
using namespace core;
using namespace core::base;
using namespace core::data;
using namespace coredata::image;
using namespace core::data::image;
using namespace core::io;
using namespace core::wrapper;
using namespace tools::player;
Expand Down Expand Up @@ -115,7 +115,7 @@ int32_t main(int32_t argc, char **argv) {
// Check if we could successfully attach to the shared memory.
if (sharedImageMemory->isValid()) {
// Using a shared lock to get exclusive access.
Lock l(sharedImageMemory);
sharedImageMemory->lock();

if (image == NULL) {
// Create the IplImage header data and access the shared memory for the actual image data.
Expand All @@ -125,6 +125,8 @@ int32_t main(int32_t argc, char **argv) {
image->imageData = static_cast<char*>(sharedImageMemory->getSharedMemory());
}

sharedImageMemory->unlock();

// Show the image using OpenCV.
cvShowImage("CaroloCup-CameraPlayback", image);

Expand Down

0 comments on commit 79d9927

Please sign in to comment.