Changeset 3778 for pjproject/trunk/pjmedia/src/pjmedia/event.c
- Timestamp:
- Oct 3, 2011 5:23:59 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia/event.c
r3666 r3778 73 73 pjmedia_event_subscription *esub) 74 74 { 75 char epub_name[5]; 76 75 77 PJ_ASSERT_RETURN(epub && esub && esub->cb, PJ_EINVAL); 76 78 /* Must not currently subscribe to anything */ 77 79 PJ_ASSERT_RETURN(esub->subscribe_to == NULL, PJ_EINVALIDOP); 80 81 TRACE_((THIS_FILE, "Subscription to publisher %s", 82 pjmedia_fourcc_name(epub->sig, epub_name))); 78 83 79 84 pj_list_push_back(&epub->subscription_list, esub); … … 85 90 { 86 91 PJ_ASSERT_RETURN(esub, PJ_EINVAL); 92 87 93 if (esub->subscribe_to) { 94 char epub_name[5]; 95 TRACE_((THIS_FILE, "Unsubscription to publisher %s", 96 pjmedia_fourcc_name(esub->subscribe_to->sig, 97 epub_name))); 98 88 99 PJ_ASSERT_RETURN( 89 100 pj_list_find_node(&esub->subscribe_to->subscription_list,
Note: See TracChangeset
for help on using the changeset viewer.