mirror of
https://github.com/yawut/SDL.git
synced 2026-10-02 05:06:46 -05:00
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
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user