Ignore:
Timestamp:
Jun 9, 2011 4:08:47 AM (13 years ago)
Author:
ming
Message:

Re #1292: Make sure each video device and video port instance is always unidirectional

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/projects/2.0-dev/pjmedia/src/pjmedia-videodev/v4l2_dev.c

    r3489 r3580  
    532532    PJ_ASSERT_RETURN(f && param && p_vid_strm, PJ_EINVAL); 
    533533    PJ_ASSERT_RETURN(param->fmt.type == PJMEDIA_TYPE_VIDEO && 
    534                      param->fmt.detail_type == PJMEDIA_FORMAT_DETAIL_VIDEO, 
     534                     param->fmt.detail_type == PJMEDIA_FORMAT_DETAIL_VIDEO && 
     535                     param->dir == PJMEDIA_DIR_CAPTURE, 
    535536                     PJ_EINVAL); 
    536537    PJ_ASSERT_RETURN(param->cap_id >= 0 && param->cap_id < cf->dev_count, 
Note: See TracChangeset for help on using the changeset viewer.