Mercurial > audlegacy-plugins
comparison src/sid/xmms-sid.c @ 2814:a03d670e8752
Add != NULL to assert (NULL can be (void*)-1 on some systems).
author | Jonathan Schleifer <js-audacious@webkeks.org> |
---|---|
date | Sat, 12 Jul 2008 16:00:03 +0200 |
parents | 86bfc1159197 |
children |
comparison
equal
deleted
inserted
replaced
2813:21cff0510f38 | 2814:a03d670e8752 |
---|---|
290 gint audioGot, tmpLength, subTune; | 290 gint audioGot, tmpLength, subTune; |
291 gchar *tmpFilename, *audioBuffer = NULL, *oversampleBuffer = NULL, *tmpTitle; | 291 gchar *tmpFilename, *audioBuffer = NULL, *oversampleBuffer = NULL, *tmpTitle; |
292 Tuple *tmpTuple; | 292 Tuple *tmpTuple; |
293 | 293 |
294 assert(pb); | 294 assert(pb); |
295 assert(xs_status.sidPlayer); | 295 assert(xs_status.sidPlayer != NULL); |
296 | 296 |
297 XSDEBUG("play '%s'\n", pb->filename); | 297 XSDEBUG("play '%s'\n", pb->filename); |
298 | 298 |
299 XS_MUTEX_LOCK(xs_status); | 299 XS_MUTEX_LOCK(xs_status); |
300 | 300 |
681 Tuple *result; | 681 Tuple *result; |
682 gchar *tmpFilename; | 682 gchar *tmpFilename; |
683 xs_tuneinfo_t *tmpInfo; | 683 xs_tuneinfo_t *tmpInfo; |
684 gint tmpTune; | 684 gint tmpTune; |
685 | 685 |
686 assert(xs_status.sidPlayer); | 686 assert(xs_status.sidPlayer != NULL); |
687 | 687 |
688 if (filename == NULL) | 688 if (filename == NULL) |
689 return NULL; | 689 return NULL; |
690 | 690 |
691 XS_MUTEX_LOCK(xs_status); | 691 XS_MUTEX_LOCK(xs_status); |