mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
baseaudioencoder: rename state field xint to is_int
This commit is contained in:
parent
3d2f496b3a
commit
bf61f04577
2 changed files with 5 additions and 5 deletions
|
@ -940,9 +940,9 @@ gst_base_audio_encoder_sink_setcaps (GstPad * pad, GstCaps * caps)
|
||||||
s = gst_caps_get_structure (caps, 0);
|
s = gst_caps_get_structure (caps, 0);
|
||||||
/* parse caps here to save subclass the trouble */
|
/* parse caps here to save subclass the trouble */
|
||||||
if (gst_structure_has_name (s, "audio/x-raw-int"))
|
if (gst_structure_has_name (s, "audio/x-raw-int"))
|
||||||
state->xint = TRUE;
|
state->is_int = TRUE;
|
||||||
else if (gst_structure_has_name (s, "audio/x-raw-float"))
|
else if (gst_structure_has_name (s, "audio/x-raw-float"))
|
||||||
state->xint = FALSE;
|
state->is_int = FALSE;
|
||||||
else
|
else
|
||||||
goto refuse_caps;
|
goto refuse_caps;
|
||||||
|
|
||||||
|
@ -952,11 +952,11 @@ gst_base_audio_encoder_sink_setcaps (GstPad * pad, GstCaps * caps)
|
||||||
CHECK_VALUE (res, state->channels, vi);
|
CHECK_VALUE (res, state->channels, vi);
|
||||||
res &= gst_structure_get_int (s, "width", &vi);
|
res &= gst_structure_get_int (s, "width", &vi);
|
||||||
CHECK_VALUE (res, state->width, vi);
|
CHECK_VALUE (res, state->width, vi);
|
||||||
res &= (!state->xint || gst_structure_get_int (s, "depth", &vi));
|
res &= (!state->is_int || gst_structure_get_int (s, "depth", &vi));
|
||||||
CHECK_VALUE (res, state->depth, vi);
|
CHECK_VALUE (res, state->depth, vi);
|
||||||
res &= gst_structure_get_int (s, "endianness", &vi);
|
res &= gst_structure_get_int (s, "endianness", &vi);
|
||||||
CHECK_VALUE (res, state->endian, vi);
|
CHECK_VALUE (res, state->endian, vi);
|
||||||
res &= (!state->xint || gst_structure_get_boolean (s, "signed", &vb));
|
res &= (!state->is_int || gst_structure_get_boolean (s, "signed", &vb));
|
||||||
CHECK_VALUE (res, state->sign, vb);
|
CHECK_VALUE (res, state->sign, vb);
|
||||||
|
|
||||||
state->bpf = (state->width / 8) * state->channels;
|
state->bpf = (state->width / 8) * state->channels;
|
||||||
|
|
|
@ -98,7 +98,7 @@ typedef struct _GstBaseAudioEncoderContext GstBaseAudioEncoderContext;
|
||||||
* @bpf: bytes per audio frame
|
* @bpf: bytes per audio frame
|
||||||
*/
|
*/
|
||||||
typedef struct _GstAudioState {
|
typedef struct _GstAudioState {
|
||||||
gboolean xint;
|
gboolean is_int;
|
||||||
gint rate;
|
gint rate;
|
||||||
gint channels;
|
gint channels;
|
||||||
gint width;
|
gint width;
|
||||||
|
|
Loading…
Reference in a new issue