]> git.sesse.net Git - vlc/commitdiff
* modules/access/udp.c : Fixed a segfault.
authorChristophe Massiot <massiot@videolan.org>
Fri, 8 Apr 2005 17:39:18 +0000 (17:39 +0000)
committerChristophe Massiot <massiot@videolan.org>
Fri, 8 Apr 2005 17:39:18 +0000 (17:39 +0000)
modules/access/udp.c

index 543db630192e21ac076f56eca40a2ae465211758..399cea0527356338a78f9be6d8054e49b02585d4 100644 (file)
@@ -392,7 +392,12 @@ trash:
 
 static block_t *BlockRTP( access_t *p_access )
 {
-    return BlockParseRTP( p_access, BlockUDP( p_access ) );
+    block_t *p_block = BlockUDP( p_access );
+
+    if ( p_block != NULL )
+        return BlockParseRTP( p_access, p_block );
+    else
+        return NULL;
 }
 
 /*****************************************************************************