mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 07:16:55 +00:00
tests/check/elements/: It's "endianness", not "endianess". Fixes unit tests.
Original commit message from CVS: * tests/check/elements/rganalysis.c: (test_buffer_const_float_mono), (test_buffer_const_float_stereo), (test_buffer_const_int16_mono), (test_buffer_const_int16_stereo), (test_buffer_square_float_mono), (test_buffer_square_float_stereo), (test_buffer_square_int16_mono), (test_buffer_square_int16_stereo): * tests/check/elements/rglimiter.c: (create_test_buffer): * tests/check/elements/rgvolume.c: (test_buffer_new): It's "endianness", not "endianess". Fixes unit tests.
This commit is contained in:
parent
5cebc8f01c
commit
a206c7bd3e
3 changed files with 10 additions and 10 deletions
|
@ -365,7 +365,7 @@ test_buffer_const_float_mono (gint sample_rate, gsize n_frames, gfloat value)
|
||||||
|
|
||||||
caps = gst_caps_new_simple ("audio/x-raw-float",
|
caps = gst_caps_new_simple ("audio/x-raw-float",
|
||||||
"rate", G_TYPE_INT, sample_rate, "channels", G_TYPE_INT, 1,
|
"rate", G_TYPE_INT, sample_rate, "channels", G_TYPE_INT, 1,
|
||||||
"endianess", G_TYPE_INT, G_BYTE_ORDER, "width", G_TYPE_INT, 32, NULL);
|
"endianness", G_TYPE_INT, G_BYTE_ORDER, "width", G_TYPE_INT, 32, NULL);
|
||||||
gst_buffer_set_caps (buf, caps);
|
gst_buffer_set_caps (buf, caps);
|
||||||
gst_caps_unref (caps);
|
gst_caps_unref (caps);
|
||||||
|
|
||||||
|
@ -390,7 +390,7 @@ test_buffer_const_float_stereo (gint sample_rate, gsize n_frames,
|
||||||
|
|
||||||
caps = gst_caps_new_simple ("audio/x-raw-float",
|
caps = gst_caps_new_simple ("audio/x-raw-float",
|
||||||
"rate", G_TYPE_INT, sample_rate, "channels", G_TYPE_INT, 2,
|
"rate", G_TYPE_INT, sample_rate, "channels", G_TYPE_INT, 2,
|
||||||
"endianess", G_TYPE_INT, G_BYTE_ORDER, "width", G_TYPE_INT, 32, NULL);
|
"endianness", G_TYPE_INT, G_BYTE_ORDER, "width", G_TYPE_INT, 32, NULL);
|
||||||
gst_buffer_set_caps (buf, caps);
|
gst_buffer_set_caps (buf, caps);
|
||||||
gst_caps_unref (caps);
|
gst_caps_unref (caps);
|
||||||
|
|
||||||
|
@ -413,7 +413,7 @@ test_buffer_const_int16_mono (gint sample_rate, gint depth, gsize n_frames,
|
||||||
|
|
||||||
caps = gst_caps_new_simple ("audio/x-raw-int",
|
caps = gst_caps_new_simple ("audio/x-raw-int",
|
||||||
"rate", G_TYPE_INT, sample_rate, "channels", G_TYPE_INT, 1,
|
"rate", G_TYPE_INT, sample_rate, "channels", G_TYPE_INT, 1,
|
||||||
"endianess", G_TYPE_INT, G_BYTE_ORDER, "signed", G_TYPE_BOOLEAN, TRUE,
|
"endianness", G_TYPE_INT, G_BYTE_ORDER, "signed", G_TYPE_BOOLEAN, TRUE,
|
||||||
"width", G_TYPE_INT, 16, "depth", G_TYPE_INT, depth, NULL);
|
"width", G_TYPE_INT, 16, "depth", G_TYPE_INT, depth, NULL);
|
||||||
gst_buffer_set_caps (buf, caps);
|
gst_buffer_set_caps (buf, caps);
|
||||||
gst_caps_unref (caps);
|
gst_caps_unref (caps);
|
||||||
|
@ -439,7 +439,7 @@ test_buffer_const_int16_stereo (gint sample_rate, gint depth, gsize n_frames,
|
||||||
|
|
||||||
caps = gst_caps_new_simple ("audio/x-raw-int",
|
caps = gst_caps_new_simple ("audio/x-raw-int",
|
||||||
"rate", G_TYPE_INT, sample_rate, "channels", G_TYPE_INT, 2,
|
"rate", G_TYPE_INT, sample_rate, "channels", G_TYPE_INT, 2,
|
||||||
"endianess", G_TYPE_INT, G_BYTE_ORDER, "signed", G_TYPE_BOOLEAN, TRUE,
|
"endianness", G_TYPE_INT, G_BYTE_ORDER, "signed", G_TYPE_BOOLEAN, TRUE,
|
||||||
"width", G_TYPE_INT, 16, "depth", G_TYPE_INT, depth, NULL);
|
"width", G_TYPE_INT, 16, "depth", G_TYPE_INT, depth, NULL);
|
||||||
gst_buffer_set_caps (buf, caps);
|
gst_buffer_set_caps (buf, caps);
|
||||||
gst_caps_unref (caps);
|
gst_caps_unref (caps);
|
||||||
|
@ -473,7 +473,7 @@ test_buffer_square_float_mono (gint * accumulator, gint sample_rate,
|
||||||
|
|
||||||
caps = gst_caps_new_simple ("audio/x-raw-float",
|
caps = gst_caps_new_simple ("audio/x-raw-float",
|
||||||
"rate", G_TYPE_INT, sample_rate, "channels", G_TYPE_INT, 1,
|
"rate", G_TYPE_INT, sample_rate, "channels", G_TYPE_INT, 1,
|
||||||
"endianess", G_TYPE_INT, G_BYTE_ORDER, "width", G_TYPE_INT, 32, NULL);
|
"endianness", G_TYPE_INT, G_BYTE_ORDER, "width", G_TYPE_INT, 32, NULL);
|
||||||
gst_buffer_set_caps (buf, caps);
|
gst_buffer_set_caps (buf, caps);
|
||||||
gst_caps_unref (caps);
|
gst_caps_unref (caps);
|
||||||
|
|
||||||
|
@ -506,7 +506,7 @@ test_buffer_square_float_stereo (gint * accumulator, gint sample_rate,
|
||||||
|
|
||||||
caps = gst_caps_new_simple ("audio/x-raw-float",
|
caps = gst_caps_new_simple ("audio/x-raw-float",
|
||||||
"rate", G_TYPE_INT, sample_rate, "channels", G_TYPE_INT, 2,
|
"rate", G_TYPE_INT, sample_rate, "channels", G_TYPE_INT, 2,
|
||||||
"endianess", G_TYPE_INT, G_BYTE_ORDER, "width", G_TYPE_INT, 32, NULL);
|
"endianness", G_TYPE_INT, G_BYTE_ORDER, "width", G_TYPE_INT, 32, NULL);
|
||||||
gst_buffer_set_caps (buf, caps);
|
gst_buffer_set_caps (buf, caps);
|
||||||
gst_caps_unref (caps);
|
gst_caps_unref (caps);
|
||||||
|
|
||||||
|
@ -536,7 +536,7 @@ test_buffer_square_int16_mono (gint * accumulator, gint sample_rate,
|
||||||
|
|
||||||
caps = gst_caps_new_simple ("audio/x-raw-int",
|
caps = gst_caps_new_simple ("audio/x-raw-int",
|
||||||
"rate", G_TYPE_INT, sample_rate, "channels", G_TYPE_INT, 1,
|
"rate", G_TYPE_INT, sample_rate, "channels", G_TYPE_INT, 1,
|
||||||
"endianess", G_TYPE_INT, G_BYTE_ORDER, "signed", G_TYPE_BOOLEAN, TRUE,
|
"endianness", G_TYPE_INT, G_BYTE_ORDER, "signed", G_TYPE_BOOLEAN, TRUE,
|
||||||
"width", G_TYPE_INT, 16, "depth", G_TYPE_INT, depth, NULL);
|
"width", G_TYPE_INT, 16, "depth", G_TYPE_INT, depth, NULL);
|
||||||
gst_buffer_set_caps (buf, caps);
|
gst_buffer_set_caps (buf, caps);
|
||||||
gst_caps_unref (caps);
|
gst_caps_unref (caps);
|
||||||
|
@ -570,7 +570,7 @@ test_buffer_square_int16_stereo (gint * accumulator, gint sample_rate,
|
||||||
|
|
||||||
caps = gst_caps_new_simple ("audio/x-raw-int",
|
caps = gst_caps_new_simple ("audio/x-raw-int",
|
||||||
"rate", G_TYPE_INT, sample_rate, "channels", G_TYPE_INT, 2,
|
"rate", G_TYPE_INT, sample_rate, "channels", G_TYPE_INT, 2,
|
||||||
"endianess", G_TYPE_INT, G_BYTE_ORDER, "signed", G_TYPE_BOOLEAN, TRUE,
|
"endianness", G_TYPE_INT, G_BYTE_ORDER, "signed", G_TYPE_BOOLEAN, TRUE,
|
||||||
"width", G_TYPE_INT, 16, "depth", G_TYPE_INT, depth, NULL);
|
"width", G_TYPE_INT, 16, "depth", G_TYPE_INT, depth, NULL);
|
||||||
gst_buffer_set_caps (buf, caps);
|
gst_buffer_set_caps (buf, caps);
|
||||||
gst_caps_unref (caps);
|
gst_caps_unref (caps);
|
||||||
|
|
|
@ -110,7 +110,7 @@ create_test_buffer ()
|
||||||
|
|
||||||
caps = gst_caps_new_simple ("audio/x-raw-float",
|
caps = gst_caps_new_simple ("audio/x-raw-float",
|
||||||
"rate", G_TYPE_INT, 44100, "channels", G_TYPE_INT, 1,
|
"rate", G_TYPE_INT, 44100, "channels", G_TYPE_INT, 1,
|
||||||
"endianess", G_TYPE_INT, G_BYTE_ORDER, "width", G_TYPE_INT, 32, NULL);
|
"endianness", G_TYPE_INT, G_BYTE_ORDER, "width", G_TYPE_INT, 32, NULL);
|
||||||
gst_buffer_set_caps (buf, caps);
|
gst_buffer_set_caps (buf, caps);
|
||||||
gst_caps_unref (caps);
|
gst_caps_unref (caps);
|
||||||
|
|
||||||
|
|
|
@ -179,7 +179,7 @@ test_buffer_new (gfloat value)
|
||||||
data[i] = value;
|
data[i] = value;
|
||||||
|
|
||||||
caps = gst_caps_from_string ("audio/x-raw-float, "
|
caps = gst_caps_from_string ("audio/x-raw-float, "
|
||||||
"rate = 8000, channels = 1, endianess = BYTE_ORDER, width = 32");
|
"rate = 8000, channels = 1, endianness = BYTE_ORDER, width = 32");
|
||||||
gst_buffer_set_caps (buf, caps);
|
gst_buffer_set_caps (buf, caps);
|
||||||
gst_caps_unref (caps);
|
gst_caps_unref (caps);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue