comparison mplayer.c @ 36856:3fa865bd3157

For -dump* to retry once of it reached EOF before writing anything.
author reimar
date Wed, 26 Feb 2014 22:02:06 +0000
parents b4ccac0a65d5
children f5bbd989e55a
comparison
equal deleted inserted replaced
36855:5cee3aefde4f 36856:3fa865bd3157
3497 if (!f) { 3497 if (!f) {
3498 mp_msg(MSGT_CPLAYER, MSGL_FATAL, MSGTR_CantOpenDumpfile); 3498 mp_msg(MSGT_CPLAYER, MSGL_FATAL, MSGTR_CantOpenDumpfile);
3499 exit_player(EXIT_ERROR); 3499 exit_player(EXIT_ERROR);
3500 } 3500 }
3501 stream_dump_progress_start(); 3501 stream_dump_progress_start();
3502
3503 // force retry in case bad interleaving caused EOF before.
3504 ds->fill_count = 0;
3505 ds->eof = 0;
3502 while (!ds->eof) { 3506 while (!ds->eof) {
3503 unsigned char *start; 3507 unsigned char *start;
3504 double pts; 3508 double pts;
3505 int in_size = ds_get_packet_pts(ds, &start, &pts); 3509 int in_size = ds_get_packet_pts(ds, &start, &pts);
3506 if (is_at_end(mpctx, &end_at, pts)) 3510 if (is_at_end(mpctx, &end_at, pts))