depayload = GST_BASE_RTP_DEPAYLOAD (rtpamrdepay);
- depayload->clock_rate = 8000;
gst_pad_use_fixed_caps (GST_BASE_RTP_DEPAYLOAD_SRCPAD (depayload));
}
GstRtpAMRDepay *rtpamrdepay;
const gchar *params;
const gchar *str;
- gint clock_rate;
+ gint clock_rate = 8000; /* default */
rtpamrdepay = GST_RTP_AMR_DEPAY (depayload);
rtpamrdepay->channels = atoi (params);
}
- if (!gst_structure_get_int (structure, "clock-rate", &clock_rate))
- clock_rate = 8000;
+ gst_structure_get_int (structure, "clock-rate", &clock_rate);
depayload->clock_rate = clock_rate;
/* we require 1 channel, 8000 Hz, octet aligned, no CRC,