Changeset 4310


Ignore:
Timestamp:
Dec 19, 2012 5:38:28 AM (12 years ago)
Author:
nanang
Message:

Fix #1600: V4L2 capture device always re-enqueues buffer with index zero.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia-videodev/v4l2_dev.c

    r3901 r4310  
    671671    pj_time_val time; 
    672672    pj_status_t status = PJ_SUCCESS; 
     673    unsigned tmp_idx; 
    673674 
    674675    pj_bzero(&buf, sizeof(buf)); 
     
    698699 
    699700on_return: 
     701    tmp_idx = buf.index; 
    700702    pj_bzero(&buf, sizeof(buf)); 
    701703    buf.type = V4L2_BUF_TYPE_VIDEO_CAPTURE; 
    702704    buf.memory = V4L2_MEMORY_MMAP; 
     705    buf.index = tmp_idx; 
    703706    xioctl(stream->fd, VIDIOC_QBUF, &buf); 
    704707 
Note: See TracChangeset for help on using the changeset viewer.