PulseAudio: get the window title for the context name if it wasn't set already.
Will still fall back to get_progname() if it can't figure out the title. --HG-- branch : SDL-1.2 extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%404450
This commit is contained in:
parent
53f8167d3c
commit
f0e0c40561
1 changed files with 3 additions and 1 deletions
|
@ -497,7 +497,9 @@ static int PULSE_OpenAudio(_THIS, SDL_AudioSpec *spec)
|
|||
}
|
||||
|
||||
if (this->hidden->caption == NULL) {
|
||||
this->hidden->caption = SDL_strdup(get_progname());
|
||||
char *title = NULL;
|
||||
SDL_WM_GetCaption(&title, NULL);
|
||||
PULSE_SetCaption(this, title);
|
||||
}
|
||||
|
||||
mainloop_api = SDL_NAME(pa_mainloop_get_api)(mainloop);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue