mirror of
https://gitlab.gnome.org/GNOME/calls.git
synced 2025-01-08 04:45:31 +00:00
sip: origin: Don't mix code and declarations
Move (and reorder) declarations to avoid warnings triggered by -Wdeclaration-after-statement Closes #459
This commit is contained in:
parent
7847c72560
commit
01b214c5fb
1 changed files with 6 additions and 7 deletions
|
@ -590,12 +590,17 @@ sip_i_state (int status,
|
||||||
}
|
}
|
||||||
|
|
||||||
if (r_sdp) {
|
if (r_sdp) {
|
||||||
|
g_autoptr (CallsSdpCryptoContext) ctx = NULL;
|
||||||
g_autoptr (GList) remote_codecs =
|
g_autoptr (GList) remote_codecs =
|
||||||
calls_sip_media_manager_get_codecs_from_sdp (origin->media_manager,
|
calls_sip_media_manager_get_codecs_from_sdp (origin->media_manager,
|
||||||
r_sdp->sdp_media);
|
r_sdp->sdp_media);
|
||||||
GList *preferred_codecs = calls_sip_media_manager_codec_candidates (origin->media_manager);
|
|
||||||
g_autoptr (GList) codecs = NULL;
|
g_autoptr (GList) codecs = NULL;
|
||||||
GList *node;
|
GList *node;
|
||||||
|
GList *preferred_codecs = calls_sip_media_manager_codec_candidates (origin->media_manager);
|
||||||
|
const char *session_ip = NULL;
|
||||||
|
const char *media_ip = NULL;
|
||||||
|
int rtp_port;
|
||||||
|
int rtcp_port = 0;
|
||||||
|
|
||||||
for (node = remote_codecs; node != NULL; node = node->next) {
|
for (node = remote_codecs; node != NULL; node = node->next) {
|
||||||
MediaCodecInfo *codec = node->data;
|
MediaCodecInfo *codec = node->data;
|
||||||
|
@ -605,12 +610,6 @@ sip_i_state (int status,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
g_autoptr (CallsSdpCryptoContext) ctx = NULL;
|
|
||||||
const char *session_ip = NULL;
|
|
||||||
const char *media_ip = NULL;
|
|
||||||
int rtp_port;
|
|
||||||
int rtcp_port = 0;
|
|
||||||
|
|
||||||
g_debug ("Remote SDP was set to:\n%s", r_sdp_str);
|
g_debug ("Remote SDP was set to:\n%s", r_sdp_str);
|
||||||
|
|
||||||
if (!codecs) {
|
if (!codecs) {
|
||||||
|
|
Loading…
Reference in a new issue