mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-12 18:35:35 +00:00
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:
parent
6046421ecc
commit
35bd289be3
4 changed files with 5 additions and 5 deletions
|
@ -448,7 +448,7 @@ _audiodecoder_flush_events (gboolean send_buffers)
|
|||
{
|
||||
GstSegment segment;
|
||||
GstBuffer *buffer;
|
||||
guint64 i;
|
||||
guint i;
|
||||
GList *events_iter;
|
||||
GstMessage *msg;
|
||||
|
||||
|
|
|
@ -283,7 +283,7 @@ GST_START_TEST (audioencoder_flush_events)
|
|||
{
|
||||
GstSegment segment;
|
||||
GstBuffer *buffer;
|
||||
guint64 i;
|
||||
guint i;
|
||||
GList *events_iter;
|
||||
|
||||
setup_audioencodertester ();
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -396,7 +396,7 @@ GST_START_TEST (videoencoder_flush_events)
|
|||
{
|
||||
GstSegment segment;
|
||||
GstBuffer *buffer;
|
||||
guint64 i;
|
||||
guint i;
|
||||
GList *events_iter;
|
||||
|
||||
setup_videoencodertester ();
|
||||
|
|
Loading…
Reference in a new issue