]> git.sesse.net Git - vlc/blobdiff - modules/access/udp.c
* modules/gui/wxwindows/interface.cpp: fixed compile issue.
[vlc] / modules / access / udp.c
index ac0e20606f24964235eca85541c4420c57775e09..88848881a3712d136e2c3589636e8ad579817dd2 100644 (file)
@@ -2,7 +2,7 @@
  * udp.c: raw UDP & RTP access plug-in
  *****************************************************************************
  * Copyright (C) 2001, 2002 VideoLAN
- * $Id: udp.c,v 1.17 2003/03/24 19:12:16 gbazin Exp $
+ * $Id: udp.c,v 1.19 2003/03/30 18:14:35 gbazin Exp $
  *
  * Authors: Christophe Massiot <massiot@via.ecp.fr>
  *          Tristan Leteurtre <tooney@via.ecp.fr>
@@ -75,7 +75,7 @@ static ssize_t RTPChoose( input_thread_t *, byte_t *, size_t );
     "value should be set in miliseconds units." )
 
 vlc_module_begin();
-    set_description( _("raw UDP access module") );
+    set_description( _("UDP/RTP input") );
     add_category_hint( N_("udp"), NULL , VLC_TRUE );
     add_integer( "udp-caching", DEFAULT_PTS_DELAY / 1000, NULL, CACHING_TEXT, CACHING_LONGTEXT, VLC_TRUE );
     set_capability( "access", 0 );
@@ -339,6 +339,8 @@ static ssize_t Read( input_thread_t * p_input, byte_t * p_buffer, size_t i_len )
                             NULL, NULL, &timeout )) == 0
            || (i_ret < 0 && errno == EINTR) )
     {
+        FD_ZERO( &fds );
+        FD_SET( p_access_data->i_handle, &fds );
         timeout.tv_sec = 0;
         timeout.tv_usec = 500000;