Changeset 5965 for pjproject/trunk/pjmedia/src/pjmedia-audiodev/alsa_dev.c
- Timestamp:
- Apr 10, 2019 6:32:27 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia-audiodev/alsa_dev.c
r5846 r5965 48 48 49 49 /* Set to 1 to enable tracing */ 50 #if 0 50 #define ENABLE_TRACING 0 51 52 #if ENABLE_TRACING 51 53 # define TRACE_(expr) PJ_LOG(5,expr) 52 54 #else … … 152 154 }; 153 155 156 #if ENABLE_TRACING==0 154 157 static void null_alsa_error_handler (const char *file, 155 158 int line, … … 165 168 PJ_UNUSED_ARG(fmt); 166 169 } 170 #endif 167 171 168 172 static void alsa_error_handler (const char *file, … … 386 390 return PJMEDIA_EAUD_SYSERR; 387 391 392 #if ENABLE_TRACING 393 snd_lib_error_set_handler(alsa_error_handler); 394 #else 388 395 /* Set a null error handler prior to enumeration to suppress errors */ 389 396 snd_lib_error_set_handler(null_alsa_error_handler); 397 #endif 390 398 391 399 n = hints;
Note: See TracChangeset
for help on using the changeset viewer.