Mercurial > pidgin
diff libpurple/prpl.c @ 26365:34eb898478b4
Don't assume a PurpleMedia instance will be created immediately.
| author | Mike Ruprecht <maiku@soc.pidgin.im> |
|---|---|
| date | Sat, 28 Mar 2009 00:58:02 +0000 |
| parents | e23a74d7c97c |
| children | df9042312063 |
line wrap: on
line diff
--- a/libpurple/prpl.c Tue Mar 24 07:11:26 2009 +0000 +++ b/libpurple/prpl.c Sat Mar 28 00:58:02 2009 +0000 @@ -496,7 +496,7 @@ got_attention(gc, id, who, type_code); } -PurpleMedia * +gboolean purple_prpl_initiate_media(PurpleAccount *account, const char *who, PurpleMediaSessionType type) @@ -516,12 +516,9 @@ if (prpl_info && PURPLE_PROTOCOL_PLUGIN_HAS_FUNC(prpl_info, initiate_media)) { /* should check that the protocol supports this media type here? */ return prpl_info->initiate_media(gc, who, type); - } else { - return NULL; - } -#else - return NULL; + } else #endif + return FALSE; } PurpleMediaCaps
