Changeset 5535 for pjproject/trunk/pjsip-apps/src/samples/aviplay.c
- Timestamp:
- Jan 19, 2017 10:31:38 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip-apps/src/samples/aviplay.c
r4815 r5535 468 468 puts("Error: filename required"); 469 469 puts(desc); 470 return 1 ;470 return 110; 471 471 } 472 472 … … 474 474 /* Must init PJLIB first: */ 475 475 status = pj_init(); 476 PJ_ASSERT_RETURN(status == PJ_SUCCESS, 1 );476 PJ_ASSERT_RETURN(status == PJ_SUCCESS, 120); 477 477 478 478 /* Must create a pool factory before we can allocate any memory. */ … … 493 493 494 494 status = pjmedia_vid_dev_subsys_init(&cp.factory); 495 if (status != PJ_SUCCESS) 495 if (status != PJ_SUCCESS) { 496 rc = 130; 496 497 goto on_return; 498 } 497 499 498 500 status = pjmedia_aud_subsys_init(&cp.factory); 499 501 if (status != PJ_SUCCESS) { 502 rc = 140; 500 503 goto on_return; 501 504 } … … 503 506 #if defined(PJMEDIA_HAS_OPENH264_CODEC) && PJMEDIA_HAS_OPENH264_CODEC != 0 504 507 status = pjmedia_codec_openh264_vid_init(NULL, &cp.factory); 505 if (status != PJ_SUCCESS) 508 if (status != PJ_SUCCESS) { 509 rc = 150; 506 510 goto on_return; 511 } 507 512 #endif 508 513 509 514 #if PJMEDIA_HAS_FFMPEG_VID_CODEC 510 515 status = pjmedia_codec_ffmpeg_vid_init(NULL, &cp.factory); 511 if (status != PJ_SUCCESS) 516 if (status != PJ_SUCCESS) { 517 rc = 160; 512 518 goto on_return; 519 } 513 520 #endif 514 521 … … 549 556 550 557 /* Done. */ 551 return 0;558 return rc; 552 559 } 553 560
Note: See TracChangeset
for help on using the changeset viewer.