Skip to content

Commit

Permalink
Print debug output to stderr in vtt.c
Browse files Browse the repository at this point in the history
Fixes issue szatmary#55
  • Loading branch information
alumae authored Jun 4, 2020
1 parent e8b6261 commit 62aed21
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vtt.c
Original file line number Diff line number Diff line change
Expand Up @@ -161,11 +161,11 @@ void parse_timestamps(const utf8_char_t* line, double* start_pts, double* end_pt
*start_pts = -1;
*cue_settings = NULL;

printf("Matches: %d\n", matches);
fprintf(stderr, "Matches: %d\n", matches);

if (matches >= 1) {
*start_pts = parse_timestamp(start_str);
printf("Start pts: %f\n", *start_pts);
fprintf(stderr, "Start pts: %f\n", *start_pts);
}
if (matches >= 2) {
*end_pts = parse_timestamp(end_str);
Expand Down

0 comments on commit 62aed21

Please sign in to comment.