encoder/vorbis: generate end-of-stream packet when playback ends

Add the encoder_plugin method end().  This is important for the
recorder plugin.
This commit is contained in:
Max Kellermann
2012-04-05 00:03:38 +02:00
parent 466c337bcb
commit 5acee73fc8
9 changed files with 45 additions and 6 deletions

View File

@@ -191,7 +191,7 @@ recorder_output_close(void *data)
/* flush the encoder and write the rest to the file */
if (encoder_flush(recorder->encoder, NULL))
if (encoder_end(recorder->encoder, NULL))
recorder_output_encoder_to_file(recorder, NULL);
/* now really close everything */