mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
gst: Set alignment at the correct place of GstAllocationParams
This commit is contained in:
parent
3371297afc
commit
6586e42384
2 changed files with 2 additions and 2 deletions
|
@ -562,7 +562,7 @@ gst_dtmf_src_generate_tone (GstDTMFSrcEvent * event, DTMF_KEY key,
|
|||
double i = 0;
|
||||
double amplitude, f1, f2;
|
||||
double volume_factor;
|
||||
static GstAllocationParams params = { 0, 0, 0, 1, };
|
||||
static GstAllocationParams params = { 0, 1, 0, 0, };
|
||||
|
||||
/* Create a buffer for the tone */
|
||||
tone_size = ((duration / 1000) * sample_rate * SAMPLE_SIZE * CHANNELS) / 8;
|
||||
|
|
|
@ -342,7 +342,7 @@ gst_dtmf_src_generate_tone (GstRtpDTMFDepay * rtpdtmfdepay,
|
|||
guint32 clock_rate = 8000 /* default */ ;
|
||||
GstRTPBaseDepayload *depayload = GST_RTP_BASE_DEPAYLOAD (rtpdtmfdepay);
|
||||
gint volume;
|
||||
static GstAllocationParams params = { 0, 0, 0, 1, };
|
||||
static GstAllocationParams params = { 0, 1, 0, 0, };
|
||||
|
||||
clock_rate = depayload->clock_rate;
|
||||
|
||||
|
|
Loading…
Reference in a new issue