mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-07 07:58:51 +00:00
dashdemux: fix printing buffering time and download rate/size
This was broken on armv7.
This commit is contained in:
parent
bd2784ffbb
commit
0b5eb519e7
1 changed files with 3 additions and 2 deletions
|
@ -146,6 +146,7 @@
|
||||||
#define GLIB_DISABLE_DEPRECATION_WARNINGS
|
#define GLIB_DISABLE_DEPRECATION_WARNINGS
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#include <inttypes.h>
|
||||||
#include <gst/base/gsttypefindhelper.h>
|
#include <gst/base/gsttypefindhelper.h>
|
||||||
#include "gstdashdemux.h"
|
#include "gstdashdemux.h"
|
||||||
|
|
||||||
|
@ -1198,7 +1199,7 @@ gst_dash_demux_download_loop (GstDashDemux * demux)
|
||||||
goto quit;
|
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);
|
gst_dash_demux_get_buffering_time (demux) / GST_SECOND);
|
||||||
demux->client->update_failed_count = 0;
|
demux->client->update_failed_count = 0;
|
||||||
} else {
|
} else {
|
||||||
|
@ -1580,7 +1581,7 @@ gst_dash_demux_get_next_fragment_set (GstDashDemux * demux)
|
||||||
g_get_current_time (&now);
|
g_get_current_time (&now);
|
||||||
diff = (GST_TIMEVAL_TO_TIME (now) - GST_TIMEVAL_TO_TIME (start));
|
diff = (GST_TIMEVAL_TO_TIME (now) - GST_TIMEVAL_TO_TIME (start));
|
||||||
demux->dnl_rate = (size_buffer * 8) / ((double) diff / GST_SECOND);
|
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));
|
demux->dnl_rate / 1000, size_buffer / 1024, ((double) diff / GST_SECOND));
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue