Mercurial > pidgin.yaz
comparison libpurple/protocols/jabber/jingle/rtp.c @ 26111:8b16e5fcaa32
Added reject and hangup states to the state-changed signal.
author | Mike Ruprecht <maiku@soc.pidgin.im> |
---|---|
date | Tue, 13 Jan 2009 05:32:34 +0000 |
parents | ac4d7695dbc7 |
children | 5d9a97a23d6e |
comparison
equal
deleted
inserted
replaced
26110:3fd5bda55d76 | 26111:8b16e5fcaa32 |
---|---|
318 jingle_rtp_state_changed_cb(PurpleMedia *media, PurpleMediaStateChangedType type, | 318 jingle_rtp_state_changed_cb(PurpleMedia *media, PurpleMediaStateChangedType type, |
319 gchar *sid, gchar *name, JingleSession *session) | 319 gchar *sid, gchar *name, JingleSession *session) |
320 { | 320 { |
321 purple_debug_info("jingle-rtp", "state-changed: type %d id: %s name: %s\n", type, sid, name); | 321 purple_debug_info("jingle-rtp", "state-changed: type %d id: %s name: %s\n", type, sid, name); |
322 | 322 |
323 if (type == PURPLE_MEDIA_STATE_CHANGED_END && | 323 if ((type == PURPLE_MEDIA_STATE_CHANGED_REJECTED || |
324 type == PURPLE_MEDIA_STATE_CHANGED_HANGUP) && | |
324 sid == NULL && name == NULL) { | 325 sid == NULL && name == NULL) { |
325 gchar *sid = jingle_session_get_sid(session); | 326 gchar *sid = jingle_session_get_sid(session); |
326 jabber_iq_send(jingle_session_to_packet(session, | 327 jabber_iq_send(jingle_session_to_packet(session, |
327 JINGLE_SESSION_TERMINATE)); | 328 JINGLE_SESSION_TERMINATE)); |
328 g_hash_table_remove(jingle_session_get_js(session)->medias, sid); | 329 g_hash_table_remove(jingle_session_get_js(session)->medias, sid); |