changeset 26103:f44b5f61d4b7

Don't crash if media can't be found.
author Mike Ruprecht <maiku@soc.pidgin.im>
date Thu, 05 Feb 2009 22:06:09 +0000
parents f06eb6e7d907
children d780894d7022
files libpurple/media.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/media.c	Thu Feb 05 11:47:40 2009 +0000
+++ b/libpurple/media.c	Thu Feb 05 22:06:09 2009 +0000
@@ -1214,6 +1214,9 @@
 						break;
 					}
 				}
+
+				if (!PURPLE_IS_MEDIA(media))
+					break;
 			}
 
 			if (gst_structure_has_name(msg->structure, "farsight-error")) {