~ubuntu-branches/ubuntu/vivid/linphone/vivid

« back to all changes in this revision

Viewing changes to mediastreamer2/src/msv4l2.c

  • Committer: Bazaar Package Importer
  • Author(s): Mark Purcell
  • Date: 2009-10-14 08:26:02 UTC
  • mfrom: (1.3.1 upstream) (6.1.1 sid)
  • Revision ID: james.westby@ubuntu.com-20091014082602-751618nxdjooja3l
Tags: 3.2.1-1
New upstream release 

Show diffs side-by-side

added added

removed removed

Lines of Context:
235
235
                s->frames[i]=msg;
236
236
        }
237
237
        s->frame_max=req.count;
238
 
        /*
239
238
        for (i = 0; i < s->frame_max; ++i) {
240
239
                struct v4l2_buffer buf;
241
240
 
245
244
                buf.index       = i;
246
245
                if (-1==ioctl (s->fd, VIDIOC_QBUF, &buf)){
247
246
                        ms_error("VIDIOC_QBUF failed: %s",strerror(errno));
 
247
                }else {
 
248
                        s->frames[i]->b_datap->db_ref++;
 
249
                        s->queued++;
248
250
                }
249
251
        }
250
 
        */
251
252
        /*start capture immediately*/
252
253
        type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
253
254
        if (-1 ==ioctl (s->fd, VIDIOC_STREAMON, &type)){