Mercurial > audlegacy
comparison src/audacious/output.c @ 4364:695e1c91be36
Reset op_state after calling close_audio to prevent possible future flushing.
author | Sascha Hlusiak <contact@saschahlusiak.de> |
---|---|
date | Mon, 24 Mar 2008 17:02:26 +0100 |
parents | 04ade98fafa3 |
children | b3e4f5c31546 |
comparison
equal
deleted
inserted
replaced
4363:80feba8e9034 | 4364:695e1c91be36 |
---|---|
287 } | 287 } |
288 else if (op_state.rate != 0 && op_state.nch != 0) | 288 else if (op_state.rate != 0 && op_state.nch != 0) |
289 { | 289 { |
290 plugin_set_current((Plugin *)op); | 290 plugin_set_current((Plugin *)op); |
291 op->close_audio(); | 291 op->close_audio(); |
292 op_state.fmt = 0; | |
293 op_state.rate = 0; | |
294 op_state.nch = 0; | |
292 } | 295 } |
293 | 296 |
294 plugin_set_current((Plugin *)op); | 297 plugin_set_current((Plugin *)op); |
295 gint ret = op->open_audio(fmt, rate, nch); | 298 gint ret = op->open_audio(fmt, rate, nch); |
296 | 299 |