Skip to content
Permalink
Browse files

patch-pulse (from ahoka@NetBSD.org):

Fix assertion triggered in pulsaudio by returning "unknown" instead
of NULL pointer when guessing application name.

- Use getprogname on NetBSD as it wont return NULL
  • Loading branch information
slouken committed Oct 16, 2009
1 parent 807cef0 commit b931b1759f417484044c357db1c0344934d14426
Showing with 6 additions and 2 deletions.
  1. +6 −2 src/audio/pulse/SDL_pulseaudio.c
@@ -346,8 +346,8 @@ static void PULSE_CloseAudio(_THIS)
/* Try to get the name of the program */
static char *get_progname(void)
{
char *progname = NULL;
#ifdef __LINUX__
char *progname = NULL;
FILE *fp;
static char temp[BUFSIZ];

@@ -364,8 +364,12 @@ static char *get_progname(void)
}
fclose(fp);
}
#endif
return(progname);
#elif defined(__NetBSD__)
return getprogname();
#else
return("unknown");
#endif
}

static void stream_drain_complete(pa_stream *s, int success, void *userdata) {

0 comments on commit b931b17

Please sign in to comment.