dashdemux: fix printing buffering time and download rate/size

This was broken on armv7.
This commit is contained in:
Olivier Blin 2012-10-25 17:15:09 +02:00 committed by Thiago Santos
parent bd2784ffbb
commit 0b5eb519e7

View file

@ -146,6 +146,7 @@
#define GLIB_DISABLE_DEPRECATION_WARNINGS
#include <string.h>
#include <inttypes.h>
#include <gst/base/gsttypefindhelper.h>
#include "gstdashdemux.h"
@ -1198,7 +1199,7 @@ gst_dash_demux_download_loop (GstDashDemux * demux)
goto quit;
}
}
GST_INFO_OBJECT (demux, "Internal buffering : %d s",
GST_INFO_OBJECT (demux, "Internal buffering : %" PRIu64 " s",
gst_dash_demux_get_buffering_time (demux) / GST_SECOND);
demux->client->update_failed_count = 0;
} else {
@ -1580,7 +1581,7 @@ gst_dash_demux_get_next_fragment_set (GstDashDemux * demux)
g_get_current_time (&now);
diff = (GST_TIMEVAL_TO_TIME (now) - GST_TIMEVAL_TO_TIME (start));
demux->dnl_rate = (size_buffer * 8) / ((double) diff / GST_SECOND);
GST_INFO_OBJECT (demux, "Download rate = %d Kbits/s (%d Ko in %.2f s)",
GST_INFO_OBJECT (demux, "Download rate = %" PRIu64 " Kbits/s (%" PRIu64 " Ko in %.2f s)",
demux->dnl_rate / 1000, size_buffer / 1024, ((double) diff / GST_SECOND));
return TRUE;
}