tests: fix crashes in {audio,video}{decoder,encoder} tests on 32-bit

Don't feed 64-bit integer variable into vararg function that expects
an unsigned integer to go with GST_TAG_TRACK_NUMBER. This would
cause crashes on 32-bit platforms, and if not that then test
failures if the comparisons fail later (at least on big endian
platforms).
This commit is contained in:
Tim-Philipp Müller 2015-02-27 20:22:59 +00:00
parent 6046421ecc
commit 35bd289be3
4 changed files with 5 additions and 5 deletions

View file

@ -448,7 +448,7 @@ _audiodecoder_flush_events (gboolean send_buffers)
{
GstSegment segment;
GstBuffer *buffer;
guint64 i;
guint i;
GList *events_iter;
GstMessage *msg;

View file

@ -283,7 +283,7 @@ GST_START_TEST (audioencoder_flush_events)
{
GstSegment segment;
GstBuffer *buffer;
guint64 i;
guint i;
GList *events_iter;
setup_audioencodertester ();

View file

@ -344,7 +344,7 @@ GST_START_TEST (videodecoder_playback_with_events)
{
GstSegment segment;
GstBuffer *buffer;
guint64 i;
guint i;
GList *iter;
GList *events_iter;
@ -453,7 +453,7 @@ GST_START_TEST (videodecoder_flush_events)
{
GstSegment segment;
GstBuffer *buffer;
guint64 i;
guint i;
GList *events_iter;
setup_videodecodertester (NULL, NULL);

View file

@ -396,7 +396,7 @@ GST_START_TEST (videoencoder_flush_events)
{
GstSegment segment;
GstBuffer *buffer;
guint64 i;
guint i;
GList *events_iter;
setup_videoencodertester ();