Changeset 5098


Ignore:
Timestamp:
May 19, 2015 3:58:30 AM (9 years ago)
Author:
riza
Message:

Re #1850(misc) : Mistype param when calling pjmedia_vid_dev_stream_set_cap. The param passed is suppose to be pjmedia_vid_dev_hwnd.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsua-lib/pjsua_vid.c

    r5088 r5098  
    501501            } 
    502502 
    503             status = pjmedia_vid_dev_stream_set_cap( 
    504                                 strm, PJMEDIA_VID_DEV_CAP_OUTPUT_WINDOW, 
    505                                 &wnd_flags);         
    506             if (status != PJ_SUCCESS) { 
    507                 PJ_PERROR(4,(THIS_FILE, status, 
    508                              "Ignored error on setting window handle " 
    509                              "on wid=%d", wid)); 
     503            if (wnd) { 
     504                status = pjmedia_vid_dev_stream_set_cap( 
     505                                 strm, PJMEDIA_VID_DEV_CAP_OUTPUT_WINDOW, wnd); 
     506 
     507                if (status != PJ_SUCCESS) { 
     508                    PJ_PERROR(4, (THIS_FILE, status, 
     509                                  "Ignored error on setting window handle " 
     510                                  "on wid=%d", wid)); 
     511                } 
    510512            } 
    511513 
Note: See TracChangeset for help on using the changeset viewer.