]> git.sesse.net Git - vlc/commitdiff
* modules/access/udp.c: When udp is invoked as 'rtp:', only consider RTP
authorChristophe Massiot <massiot@videolan.org>
Fri, 7 Jan 2005 19:57:00 +0000 (19:57 +0000)
committerChristophe Massiot <massiot@videolan.org>
Fri, 7 Jan 2005 19:57:00 +0000 (19:57 +0000)
  packets.

modules/access/udp.c

index 55914d2a8a7f799bf3095cfd198894b1c70fccd4..543db630192e21ac076f56eca40a2ae465211758 100644 (file)
@@ -212,7 +212,16 @@ static int Open( vlc_object_t *p_this )
 
     /* Set up p_access */
     p_access->pf_read = NULL;
-    p_access->pf_block = BlockChoose;
+    if( !strcasecmp( p_access->psz_access, "rtp" )
+          || !strcasecmp( p_access->psz_access, "rtp4" )
+          || !strcasecmp( p_access->psz_access, "rtp6" ) )
+    {
+        p_access->pf_block = BlockRTP;
+    }
+    else
+    {
+        p_access->pf_block = BlockChoose;
+    }
     p_access->pf_control = Control;
     p_access->pf_seek = NULL;
     p_access->info.i_update = 0;