Skip to content

Commit

Permalink
removing warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
jbohren committed Mar 7, 2013
1 parent 3e72e77 commit 7062380
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gscam.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ extern "C"{
#include <sys/shm.h>

//forward declarations
static gboolean processData(GstPad *pad, GstBuffer *buffer, gpointer u_data);
//static gboolean processData(GstPad *pad, GstBuffer *buffer, gpointer u_data);
bool setCameraInfo(sensor_msgs::SetCameraInfo::Request &req, sensor_msgs::SetCameraInfo::Response &rsp);

// Globals / camera configuration
Expand Down Expand Up @@ -190,7 +190,7 @@ int main(int argc, char** argv) {
gst_structure_get_int(structure,"height",&height);

// Complain if the returned buffer is smaller than we expect
if (buf->size < width * height * 3) {
if (buf->size < unsigned(width * height * 3)) {
ROS_WARN_STREAM( "GStreamer image buffer underflow: Expected frame to be "
<< (width * height * 3) << " bytes but got only "
<< (buf->size) << " bytes. (make sure frames are raw RGB encoded)");
Expand Down

0 comments on commit 7062380

Please sign in to comment.