audio: changed some SDL_memset() calls to SDL_zero(), other minor corrections.

This commit is contained in:
Ryan C. Gordon
2016-08-05 01:59:06 -04:00
parent 979de761c9
commit 761a79788c
21 changed files with 34 additions and 39 deletions

View File

@@ -529,13 +529,12 @@ PULSEAUDIO_OpenDevice(_THIS, void *handle, const char *devname, int iscapture)
int rc = 0;
/* Initialize all variables that we clean on shutdown */
this->hidden = (struct SDL_PrivateAudioData *)
h = this->hidden = (struct SDL_PrivateAudioData *)
SDL_malloc((sizeof *this->hidden));
if (this->hidden == NULL) {
return SDL_OutOfMemory();
}
SDL_memset(this->hidden, 0, (sizeof *this->hidden));
h = this->hidden;
SDL_zerop(this->hidden);
paspec.format = PA_SAMPLE_INVALID;