[MPlayer-cvslog] r19466 - trunk/stream/freesdp/common.c

reimar subversion at mplayerhq.hu
Sun Aug 20 13:50:29 CEST 2006


Author: reimar
Date: Sun Aug 20 13:50:29 2006
New Revision: 19466

Modified:
   trunk/stream/freesdp/common.c

Log:
Avoid crash if initialization failed.


Modified: trunk/stream/freesdp/common.c
==============================================================================
--- trunk/stream/freesdp/common.c	(original)
+++ trunk/stream/freesdp/common.c	Sun Aug 20 13:50:29 2006
@@ -166,6 +166,7 @@
 
   for (i = 0; i < dsc->media_announcements_count; i++)
   {
+    if (!dsc->media_announcements[i]) continue;
     for (j = 0; j < dsc->media_announcements[i]->formats_count; j++)
       safe_free (dsc->media_announcements[i]->formats[j]);
     safe_free (dsc->media_announcements[i]->formats);



More information about the MPlayer-cvslog mailing list