mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-09-09 05:38:58 +00:00
rganalysis: Fix compiler warnings in the unit test
elements/rganalysis.c:919:66: error: shifting a negative signed value is undefined [-Werror,-Wshift-negative-value] push_buffer (test_buffer_const_int16_stereo (8000, 16, 512, -1 << 14, 0)); ~~ ^ elements/rganalysis.c:929:69: error: shifting a negative signed value is undefined [-Werror,-Wshift-negative-value] push_buffer (test_buffer_const_int16_stereo (8000, 16, 512, 0, -1 << 14)); ~~ ^ elements/rganalysis.c:939:64: error: shifting a negative signed value is undefined [-Werror,-Wshift-negative-value] push_buffer (test_buffer_const_int16_mono (8000, 16, 512, -1 << 14)); ~~ ^
This commit is contained in:
parent
6dab3ece07
commit
98fddf090c
1 changed files with 3 additions and 3 deletions
|
@ -916,7 +916,7 @@ GST_START_TEST (test_peak_int16_16)
|
|||
send_flush_events (element);
|
||||
send_caps_event (GST_AUDIO_NE (S16), 8000, 2);
|
||||
send_segment_event (element);
|
||||
push_buffer (test_buffer_const_int16_stereo (8000, 16, 512, -1 << 14, 0));
|
||||
push_buffer (test_buffer_const_int16_stereo (8000, 16, 512, -(1 << 14), 0));
|
||||
send_eos_event (element);
|
||||
tag_list = poll_tags_followed_by_eos (element);
|
||||
fail_unless_track_peak (tag_list, 0.5);
|
||||
|
@ -926,7 +926,7 @@ GST_START_TEST (test_peak_int16_16)
|
|||
send_flush_events (element);
|
||||
send_caps_event (GST_AUDIO_NE (S16), 8000, 2);
|
||||
send_segment_event (element);
|
||||
push_buffer (test_buffer_const_int16_stereo (8000, 16, 512, 0, -1 << 14));
|
||||
push_buffer (test_buffer_const_int16_stereo (8000, 16, 512, 0, -(1 << 14)));
|
||||
send_eos_event (element);
|
||||
tag_list = poll_tags_followed_by_eos (element);
|
||||
fail_unless_track_peak (tag_list, 0.5);
|
||||
|
@ -936,7 +936,7 @@ GST_START_TEST (test_peak_int16_16)
|
|||
send_flush_events (element);
|
||||
send_caps_event (GST_AUDIO_NE (S16), 8000, 1);
|
||||
send_segment_event (element);
|
||||
push_buffer (test_buffer_const_int16_mono (8000, 16, 512, -1 << 14));
|
||||
push_buffer (test_buffer_const_int16_mono (8000, 16, 512, -(1 << 14)));
|
||||
send_eos_event (element);
|
||||
tag_list = poll_tags_followed_by_eos (element);
|
||||
fail_unless_track_peak (tag_list, 0.5);
|
||||
|
|
Loading…
Reference in a new issue