Honestly I'm rather surprised that I typed the right number of zeroes.
switch(gst_discoverer_info_get_result(info)) {
case GST_DISCOVERER_OK:
t = gst_discoverer_info_get_duration(info);
switch(gst_discoverer_info_get_result(info)) {
case GST_DISCOVERER_OK:
t = gst_discoverer_info_get_duration(info);
- length = (t + 500000000)/1000000000;
+ length = (t + GST_SECOND/2)/GST_SECOND;
break;
case GST_DISCOVERER_TIMEOUT:
disorder_info("discovery timed out probing `%s'", path);
break;
case GST_DISCOVERER_TIMEOUT:
disorder_info("discovery timed out probing `%s'", path);