Skip to content

Commit

Permalink
Reinsert global timer use
Browse files Browse the repository at this point in the history
  • Loading branch information
Edward Rosten committed Jan 27, 2012
1 parent 1e5aba8 commit ec41afe
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion cvd/Linux/v4l1buffer.h
Expand Up @@ -211,7 +211,7 @@ template <class T> class V4L1Buffer : public VideoBuffer<T>, public V4L1::RawV4L
} }
virtual VideoFrame<T> * get_frame() virtual VideoFrame<T> * get_frame()
{ {
return new V4L1Frame<T>(get_time_of_day(), (T *)RawV4L1::get_frame(), RawV4L1::get_size()); return new V4L1Frame<T>(timer.get_time(), (T *)RawV4L1::get_frame(), RawV4L1::get_size());
} }
virtual void put_frame(VideoFrame<T>* f) virtual void put_frame(VideoFrame<T>* f)
{ {
Expand Down
1 change: 0 additions & 1 deletion cvd_src/Linux/v4l2buffer.cc
Expand Up @@ -440,7 +440,6 @@ V4L2FrameT<unsigned char>* V4L2Buffer_Base::get_frame(){
break; break;
} }
) )
cvd_timer timer;
frame=new V4L2FrameT<unsigned char>(timer.conv_ntime(buffer.timestamp),my_image_size,buffer.index,(unsigned char *)m_pvVideoBuffer[buffer.index], field); frame=new V4L2FrameT<unsigned char>(timer.conv_ntime(buffer.timestamp),my_image_size,buffer.index,(unsigned char *)m_pvVideoBuffer[buffer.index], field);


frame->m_buf = new struct v4l2_buffer; frame->m_buf = new struct v4l2_buffer;
Expand Down

0 comments on commit ec41afe

Please sign in to comment.