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

@@ -121,7 +121,7 @@ int main(int argc, char **argv)
encoder_to_stdout(encoder);
}
ret = encoder_flush(encoder, &error);
ret = encoder_end(encoder, &error);
if (!ret) {
g_printerr("encoder_flush() failed: %s\n",
error->message);

View File

@@ -99,7 +99,7 @@ main(G_GNUC_UNUSED int argc, G_GNUC_UNUSED char **argv)
/* finish */
success = encoder_flush(encoder, NULL);
success = encoder_end(encoder, NULL);
assert(success);
encoder_to_stdout(encoder);