Changeset 4577:e9b3b3b521dd in roaraudio for roard/roard.c
- Timestamp:
- 11/02/10 21:31:36 (13 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
roard/roard.c
r4482 r4577 1325 1325 char * location; 1326 1326 char * description; 1327 char * standards; 1327 1328 1328 1329 if ( sockname != NULL ) … … 1352 1353 } 1353 1354 1355 standards = stds_string(); 1356 1357 if ( standards == NULL ) { 1358 if ( (standards = roar_mm_malloc(1)) == NULL ) { 1359 SLPClose(hslp); 1360 return -1; 1361 } 1362 standards[0] = 0; 1363 } 1364 1354 1365 snprintf(attr, sizeof(attr), "(wave-rate=%i),(wave-channels=%i),(wave-bits=%i)," 1355 1366 #ifndef ROAR_WITHOUT_DCOMP_LIGHT 1356 1367 "(light-channels=%i)," 1357 1368 #endif 1369 "(standards=%s)," 1358 1370 "(location=%s),(description=%s)", 1359 1371 g_sa->rate, g_sa->channels, g_sa->bits, … … 1361 1373 g_light_state.channels, 1362 1374 #endif 1375 standards, 1363 1376 location, description 1364 1377 ); 1378 1379 roar_mm_free(standards); 1365 1380 1366 1381 /* Register a service with SLP */
Note: See TracChangeset
for help on using the changeset viewer.