And also print the values in case of warning
goto next_line;
}
duration = fval * (gdouble) GST_SECOND;
- if (duration > self->targetduration)
- GST_WARNING ("EXTINF duration > TARGETDURATION");
+ if (self->targetduration > 0 && duration > self->targetduration) {
+ GST_WARNING ("EXTINF duration (%" GST_TIME_FORMAT
+ ") > TARGETDURATION (%" GST_TIME_FORMAT ")",
+ GST_TIME_ARGS (duration), GST_TIME_ARGS (self->targetduration));
+ }
if (!data || *data != ',')
goto next_line;
data = g_utf8_next_char (data);