Changeset 731 for pjproject/trunk/pjmedia/src/pjmedia/port.c
- Timestamp:
- Sep 20, 2006 8:02:18 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia/port.c
r631 r731 63 63 { 64 64 PJ_ASSERT_RETURN(port && frame, PJ_EINVAL); 65 PJ_ASSERT_RETURN(port->get_frame, PJ_EINVALIDOP);66 65 67 return port->get_frame(port, frame); 66 if (port->get_frame) 67 return port->get_frame(port, frame); 68 else { 69 frame->type = PJMEDIA_FRAME_TYPE_NONE; 70 return PJ_EINVALIDOP; 71 } 68 72 } 69 73 … … 76 80 { 77 81 PJ_ASSERT_RETURN(port && frame, PJ_EINVAL); 78 PJ_ASSERT_RETURN(port->put_frame, PJ_EINVALIDOP);79 82 80 return port->put_frame(port, frame); 81 83 if (port->put_frame) 84 return port->put_frame(port, frame); 85 else 86 return PJ_EINVALIDOP; 82 87 } 83 88
Note: See TracChangeset
for help on using the changeset viewer.