X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=audiod_command.c;h=1c22f58b3eea76d91d89af50196c0fbed7c8ab31;hp=0f7aa7e625ffcd0c7274f16e184f308b0322ceab;hb=4a4d8f266a79275d7b2c902dc69b5ec8d46406b2;hpb=e10dea61fed5a67e111a641741f502765077ad7d diff --git a/audiod_command.c b/audiod_command.c index 0f7aa7e6..1c22f58b 100644 --- a/audiod_command.c +++ b/audiod_command.c @@ -194,7 +194,7 @@ static int get_play_time_slot_num(void) FOR_EACH_SLOT(i) { struct slot_info *s = &slot[i]; struct timeval wstime; - if (!s->wns) + if (!s->wns || !s->wns[0].btrn) continue; btr_get_node_start(s->wns[0].btrn, &wstime); if (oldest_slot >= 0 && tv_diff(&wstime, &oldest_wstime, NULL) > 0)