Changeset 6138
- Timestamp:
- Jan 28, 2020 2:42:42 AM (5 years ago)
- Location:
- pjproject/trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia-videodev/android_opengl.c
r6085 r6138 474 474 pj_status_t status; 475 475 476 /* Video conference just trying to send heart beat for updating timestamp 477 * or keep-alive, this port doesn't need any, just ignore. 478 */ 479 if (frame->size==0 || frame->buf==NULL) 480 return PJ_SUCCESS; 481 476 482 if (!stream->is_running || stream->display == EGL_NO_DISPLAY) 477 483 return PJ_EINVALIDOP; -
pjproject/trunk/pjmedia/src/pjmedia-videodev/darwin_dev.m
r6124 r6138 1331 1331 struct darwin_stream *stream = (struct darwin_stream*)strm; 1332 1332 1333 /* Video conference just trying to send heart beat for updating timestamp 1334 * or keep-alive, this port doesn't need any, just ignore. 1335 */ 1336 if (frame->size==0 || frame->buf==NULL) 1337 return PJ_SUCCESS; 1338 1333 1339 if (stream->frame_size >= frame->size) 1334 1340 pj_memcpy(stream->render_buf, frame->buf, frame->size); -
pjproject/trunk/pjmedia/src/pjmedia-videodev/ios_opengl_dev.m
r5406 r6138 472 472 struct iosgl_stream *stream = (struct iosgl_stream*)strm; 473 473 474 /* Video conference just trying to send heart beat for updating timestamp 475 * or keep-alive, this port doesn't need any, just ignore. 476 */ 477 if (frame->size==0 || frame->buf==NULL) 478 return PJ_SUCCESS; 479 474 480 if (!stream->is_running) 475 481 return PJ_EINVALIDOP; -
pjproject/trunk/pjmedia/src/pjmedia-videodev/sdl_dev.c
r6125 r6138 926 926 stream->last_ts.u64 = frame->timestamp.u64; 927 927 928 /* Video conference just trying to send heart beat for updating timestamp 929 * or keep-alive, this port doesn't need any, just ignore. 930 */ 931 if (frame->size==0 || frame->buf==NULL) 932 return PJ_SUCCESS; 933 934 if (frame->size < stream->vafp.framebytes) 935 return PJ_ETOOSMALL; 936 928 937 if (!stream->is_running) 929 938 return PJ_EINVALIDOP; 930 931 if (frame->size==0 || frame->buf==NULL ||932 frame->size < stream->vafp.framebytes)933 return PJ_SUCCESS;934 939 935 940 stream->frame = frame; -
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_vid.c
r6117 r6138 668 668 } 669 669 670 status = pjsua_vid_conf_connect(w->cap_slot, w->rend_slot, NULL); 671 if (status != PJ_SUCCESS) { 672 PJ_PERROR(4, (THIS_FILE, status, 673 "Ignored error on connecting video ports " 674 "on wid=%d", wid)); 675 } 676 670 677 /* Done */ 671 678 *id = wid; … … 821 828 822 829 /* For preview window, connect capturer & renderer (via conf) */ 823 if (w->type == PJSUA_WND_TYPE_PREVIEW ) {830 if (w->type == PJSUA_WND_TYPE_PREVIEW && show) { 824 831 status = pjsua_vid_conf_connect(w->cap_slot, w->rend_slot, NULL); 825 832 if (status != PJ_SUCCESS) … … 1445 1452 &enabled); 1446 1453 } else { 1454 status = pjsua_vid_conf_disconnect(w->cap_slot, w->rend_slot); 1455 if (status != PJ_SUCCESS) { 1456 PJ_PERROR(4, (THIS_FILE, status, 1457 "Ignored error on disconnecting video ports " 1458 "on stopping preview wid=%d", wid)); 1459 } 1447 1460 status = pjmedia_vid_port_stop(w->vp_rend); 1448 1461 }
Note: See TracChangeset
for help on using the changeset viewer.