Changeset 3396:15a6bfb3ae4a in roaraudio for libroarpulse


Ignore:
Timestamp:
02/11/10 15:23:14 (10 years ago)
Author:
phi
Branch:
default
Message:

corrected pa_context_new_with_proplist()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroarpulse/context.c

    r3392 r3396  
    6161  struct _roar_pa_cb_st state_change; 
    6262 } cb; 
     63 pa_mainloop_api * mainloop; 
    6364}; 
    6465 
     
    9091 c->errnum = PA_OK; 
    9192 
    92  return NULL; 
     93 if ( name != NULL ) { 
     94  c->name = roar_mm_strdup(name); 
     95 } 
     96 
     97 c->mainloop = mainloop; 
     98 
     99 return c; 
    93100} 
    94101 
     
    286293 } 
    287294 
     295 if ( c->name != NULL ) 
     296  roar_mm_free(c->name); 
     297 
    288298 c->name = roar_mm_strdup(name); 
    289299 c->cb.set_name.cb.scb   = cb; 
Note: See TracChangeset for help on using the changeset viewer.