From: Mark Nauwelaerts Date: Wed, 9 Mar 2011 11:22:04 +0000 (+0100) Subject: baseaudioencoder: rename state field xint to is_int X-Git-Tag: 1.19.3~511^2~6555^2~586 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bf61f045777662cb550b818f65e86d6e70046629;p=platform%2Fupstream%2Fgstreamer.git baseaudioencoder: rename state field xint to is_int --- diff --git a/gst-libs/gst/audio/gstbaseaudioencoder.c b/gst-libs/gst/audio/gstbaseaudioencoder.c index 37b3916..118a489 100644 --- a/gst-libs/gst/audio/gstbaseaudioencoder.c +++ b/gst-libs/gst/audio/gstbaseaudioencoder.c @@ -940,9 +940,9 @@ gst_base_audio_encoder_sink_setcaps (GstPad * pad, GstCaps * caps) s = gst_caps_get_structure (caps, 0); /* parse caps here to save subclass the trouble */ 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")) - state->xint = FALSE; + state->is_int = FALSE; else goto refuse_caps; @@ -952,11 +952,11 @@ gst_base_audio_encoder_sink_setcaps (GstPad * pad, GstCaps * caps) CHECK_VALUE (res, state->channels, vi); res &= gst_structure_get_int (s, "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); res &= gst_structure_get_int (s, "endianness", &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); state->bpf = (state->width / 8) * state->channels; diff --git a/gst-libs/gst/audio/gstbaseaudioencoder.h b/gst-libs/gst/audio/gstbaseaudioencoder.h index ffeeb9c..378ffdf 100644 --- a/gst-libs/gst/audio/gstbaseaudioencoder.h +++ b/gst-libs/gst/audio/gstbaseaudioencoder.h @@ -98,7 +98,7 @@ typedef struct _GstBaseAudioEncoderContext GstBaseAudioEncoderContext; * @bpf: bytes per audio frame */ typedef struct _GstAudioState { - gboolean xint; + gboolean is_int; gint rate; gint channels; gint width;