Ignore:
Timestamp:
Jul 12, 2011 9:08:56 AM (10 years ago)
Author:
bennylp
Message:

More on re #1284:

  • Replaced bit_info mechanism to report format change in codec with event
  • Updated vid_port, vid_codec_test, etc.
  • Add event publisher to vid_codec
  • Add event publisher to pjmedia_port
  • Add event publisher to vid_stream
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/projects/2.0-dev/pjmedia/src/pjmedia/event.c

    r3617 r3622  
    5858} 
    5959 
     60PJ_DEF(pj_bool_t) 
     61pjmedia_event_publisher_has_sub(pjmedia_event_publisher *epub) 
     62{ 
     63    PJ_ASSERT_RETURN(epub, PJ_FALSE); 
     64    return epub->subscription_list.next && 
     65            (!pj_list_empty(&epub->subscription_list)); 
     66} 
     67 
    6068PJ_DEF(pj_status_t) pjmedia_event_subscribe( pjmedia_event_publisher *epub, 
    6169                                             pjmedia_event_subscription *esub) 
     
    8896 
    8997    esub = epub->subscription_list.next; 
     98    if (!esub) 
     99        return err; 
     100 
    90101    while (esub != &epub->subscription_list) { 
    91102        pjmedia_event_subscription *next; 
Note: See TracChangeset for help on using the changeset viewer.