Commit bc726c0a authored by conrad's avatar conrad

use oggz_run() in dump_comments example


git-svn-id: http://svn.annodex.net/liboggz/trunk@2570 8158c8cd-e7e1-0310-9fa4-c5954c97daef
parent c31aa6fb
......@@ -83,7 +83,6 @@ int
main (int argc, char ** argv)
{
OGGZ * oggz;
long n;
if (argc < 2) {
printf ("usage: %s infilename\n", argv[0]);
......@@ -99,9 +98,9 @@ main (int argc, char ** argv)
exit (1);
}
oggz_set_read_callback (oggz, -1, read_packet, NULL);
oggz_set_read_callback (oggz, -1 /* read all streams */, read_packet, NULL);
while ((n = oggz_read (oggz, 1024)) > 0);
oggz_run (oggz);
oggz_close (oggz);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment