Changeset 630d42d5a3771b4d841233b9b1f1a326225e2319
- Timestamp:
- 25/01/04 18:31:22 (5 years ago)
- git-parent:
- Files:
-
- modules/access/cdda.c (modified) (2 diffs)
- modules/access/dshow/dshow.cpp (modified) (3 diffs)
- modules/access/dvb/qpsk.c (modified) (3 diffs)
- modules/access/dvd/dvd.c (modified) (3 diffs)
- modules/access/file.c (modified) (2 diffs)
- modules/access/ftp.c (modified) (12 diffs)
- modules/access/http.c (modified) (15 diffs)
- modules/access/mms/mms.c (modified) (3 diffs)
- modules/access/pvr/pvr.c (modified) (2 diffs)
- modules/access/satellite/satellite.c (modified) (1 diff)
- modules/access/slp.c (modified) (10 diffs)
- modules/access/tcp.c (modified) (5 diffs)
- modules/access/udp.c (modified) (7 diffs)
- modules/access/v4l/v4l.c (modified) (3 diffs)
- modules/access/vcd/vcd.c (modified) (1 diff)
- modules/access/vcdx/vcd.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
modules/access/cdda.c
r4219568 r630d42d 3 3 ***************************************************************************** 4 4 * Copyright (C) 2000, 2003 VideoLAN 5 * $Id: cdda.c,v 1.1 1 2003/12/22 02:24:51 samExp $5 * $Id: cdda.c,v 1.12 2004/01/25 17:31:22 gbazin Exp $ 6 6 * 7 7 * Authors: Laurent Aimar <fenrir@via.ecp.fr> … … 49 49 vlc_module_begin(); 50 50 set_description( _("Audio CD input") ); 51 52 add_integer( "cdda-caching", DEFAULT_PTS_DELAY / 1000, NULL, CACHING_TEXT, 53 CACHING_LONGTEXT, VLC_TRUE ); 54 51 55 set_capability( "access", 70 ); 52 add_integer( "cdda-caching", DEFAULT_PTS_DELAY / 1000, NULL, CACHING_TEXT, CACHING_LONGTEXT, VLC_TRUE );53 56 set_callbacks( AccessOpen, AccessClose ); 54 57 add_shortcut( "cdda" ); modules/access/dshow/dshow.cpp
r80e1dc7 r630d42d 3 3 ***************************************************************************** 4 4 * Copyright (C) 2002, 2003 VideoLAN 5 * $Id: dshow.cpp,v 1.2 4 2003/12/22 17:44:58gbazin Exp $5 * $Id: dshow.cpp,v 1.25 2004/01/25 17:31:22 gbazin Exp $ 6 6 * 7 7 * Author: Gildas Bazin <gbazin@netcourrier.com> … … 128 128 #define CONFIG_TEXT N_("Device properties") 129 129 #define CONFIG_LONGTEXT N_( \ 130 "Show the properties dialog of the selected device ")130 "Show the properties dialog of the selected device.") 131 131 132 132 static int AccessOpen ( vlc_object_t * ); … … 138 138 vlc_module_begin(); 139 139 set_description( _("DirectShow input") ); 140 add_category_hint( N_("dshow"), NULL, VLC_TRUE );141 140 add_integer( "dshow-caching", (mtime_t)(0.2*CLOCK_FREQ) / 1000, NULL, 142 141 CACHING_TEXT, CACHING_LONGTEXT, VLC_TRUE ); modules/access/dvb/qpsk.c
r5ca0ebc r630d42d 2 2 * qpsk.c : Satellite input module for vlc 3 3 ***************************************************************************** 4 * Copyright (C) 2003 VideoLAN4 * Copyright (C) 2003-2004 VideoLAN 5 5 * 6 6 * Authors: Sam Hocevar <sam@zoy.org> … … 42 42 43 43 /* Satellite options */ 44 #define ADAPTER_TEXT N_(" adapter card to tune")45 #define ADAPTER_LONGTEXT N_(" adapter cards have a device file in directory named /dev/dvb/adapter[n] with n>=0")44 #define ADAPTER_TEXT N_("Adapter card to tune") 45 #define ADAPTER_LONGTEXT N_("Adapter cards have a device file in directory named /dev/dvb/adapter[n] with n>=0.") 46 46 47 #define DEVICE_TEXT N_(" device number to use on adapter")47 #define DEVICE_TEXT N_("Device number to use on adapter") 48 48 #define DEVICE_LONGTEXT "" 49 49 50 #define FREQ_TEXT N_(" satellite defaulttransponder frequency in kHz")50 #define FREQ_TEXT N_("Satellite transponder frequency in kHz") 51 51 #define FREQ_LONGTEXT "" 52 52 53 #define POL_TEXT N_(" satellite defaulttransponder polarization")53 #define POL_TEXT N_("Satellite transponder polarization") 54 54 #define POL_LONGTEXT "" 55 55 56 #define FEC_TEXT N_(" satellite defaulttransponder FEC")57 #define FEC_LONGTEXT N_("FEC=Forward Error Correction mode ")56 #define FEC_TEXT N_("Satellite transponder FEC") 57 #define FEC_LONGTEXT N_("FEC=Forward Error Correction mode.") 58 58 59 #define SRATE_TEXT N_(" satellite defaulttransponder symbol rate in kHz")59 #define SRATE_TEXT N_("Satellite transponder symbol rate in kHz") 60 60 #define SRATE_LONGTEXT "" 61 61 62 #define DISEQC_TEXT N_(" use diseqc with antenna")62 #define DISEQC_TEXT N_("Use diseqc with antenna") 63 63 #define DISEQC_LONGTEXT "" 64 64 65 #define LNB_LOF1_TEXT N_(" antenna lnb_lof1 (kHz)")65 #define LNB_LOF1_TEXT N_("Antenna lnb_lof1 (kHz)") 66 66 #define LNB_LOF1_LONGTEXT "" 67 67 68 #define LNB_LOF2_TEXT N_(" antenna lnb_lof2 (kHz)")68 #define LNB_LOF2_TEXT N_("Antenna lnb_lof2 (kHz)") 69 69 #define LNB_LOF2_LONGTEXT "" 70 70 71 #define LNB_SLOF_TEXT N_(" antenna lnb_slof (kHz)")71 #define LNB_SLOF_TEXT N_("Antenna lnb_slof (kHz)") 72 72 #define LNB_SLOF_LONGTEXT "" 73 73 74 #define PROBE_TEXT N_(" probe the dvb card for capabilities (default disabled)")75 #define PROBE_LONGTEXT N_(" some dvb cards do not like to be probed for their capabilities")74 #define PROBE_TEXT N_("Probe dvb card for capabilities") 75 #define PROBE_LONGTEXT N_("Some dvb cards do not like to be probed for their capabilities.") 76 76 77 77 /* Cable */ 78 #define MODULATION_TEXT N_(" modulation type")79 #define MODULATION_LONGTEXT N_(" modulation type for frontend device")78 #define MODULATION_TEXT N_("Modulation type") 79 #define MODULATION_LONGTEXT N_("Modulation type for frontend device.") 80 80 81 81 /* Terrestrial */ 82 #define CODE_RATE_HP_TEXT N_(" terrestrial high priority stream code rate (FEC)")82 #define CODE_RATE_HP_TEXT N_("Terrestrial high priority stream code rate (FEC)") 83 83 #define CODE_RATE_HP_LONGTEXT "" 84 84 85 #define CODE_RATE_LP_TEXT N_(" terrestrial low priority stream code rate (FEC)")85 #define CODE_RATE_LP_TEXT N_("Terrestrial low priority stream code rate (FEC)") 86 86 #define CODE_RATE_LP_LONGTEXT "" 87 87 88 #define BANDWIDTH_TEXT N_(" terrestrial bandwidth")89 #define BANDWIDTH_LONGTEXT N_(" terrestrial bandwidth [0=auto,6,7,8 in MHz]")88 #define BANDWIDTH_TEXT N_("Terrestrial bandwidth") 89 #define BANDWIDTH_LONGTEXT N_("Terrestrial bandwidth [0=auto,6,7,8 in MHz]") 90 90 91 #define GUARD_TEXT N_(" terrestrial guard interval")91 #define GUARD_TEXT N_("Terrestrial guard interval") 92 92 #define GUARD_LONGTEXT "" 93 93 94 #define TRANSMISSION_TEXT N_(" terrestrial transmission mode")94 #define TRANSMISSION_TEXT N_("Terrestrial transmission mode") 95 95 #define TRANSMISSION_LONGTEXT "" 96 96 97 #define HIERARCHY_TEXT N_(" terrestrial hierarchy mode")97 #define HIERARCHY_TEXT N_("Terrestrial hierarchy mode") 98 98 #define HIERARCHY_LONGTEXT "" 99 99 100 100 vlc_module_begin(); 101 set_description( _("DVB input module with v4l2 support") ); 101 set_description( _("DVB input with v4l2 support") ); 102 103 add_integer( "adapter", 0, NULL, ADAPTER_TEXT, ADAPTER_LONGTEXT, 104 VLC_FALSE ); 105 add_integer( "device", 0, NULL, DEVICE_TEXT, DEVICE_LONGTEXT, VLC_FALSE ); 106 add_integer( "frequency", 11954000, NULL, FREQ_TEXT, FREQ_LONGTEXT, 107 VLC_FALSE ); 108 add_integer( "polarization", 0, NULL, POL_TEXT, POL_LONGTEXT, VLC_FALSE ); 109 add_integer( "fec", 3, NULL, FEC_TEXT, FEC_LONGTEXT, VLC_FALSE ); 110 add_integer( "symbol-rate", 27500000, NULL, SRATE_TEXT, SRATE_LONGTEXT, 111 VLC_FALSE ); 112 add_bool( "diseqc", 0, NULL, DISEQC_TEXT, DISEQC_LONGTEXT, VLC_TRUE ); 113 add_integer( "lnb-lof1", 9750000, NULL, LNB_LOF1_TEXT, LNB_LOF1_LONGTEXT, 114 VLC_TRUE ); 115 add_integer( "lnb-lof2", 12999000, NULL, LNB_LOF2_TEXT, LNB_LOF2_LONGTEXT, 116 VLC_TRUE ); 117 add_integer( "lnb-slof", 11700000, NULL, LNB_SLOF_TEXT, LNB_SLOF_LONGTEXT, 118 VLC_TRUE ); 119 add_bool( "probe", 0, NULL, PROBE_TEXT, PROBE_LONGTEXT, VLC_FALSE ); 120 add_integer( "code-rate-hp", 9, NULL, CODE_RATE_HP_TEXT, 121 CODE_RATE_HP_LONGTEXT, VLC_TRUE ); 122 add_integer( "code-rate-lp", 9, NULL, CODE_RATE_LP_TEXT, 123 CODE_RATE_LP_LONGTEXT, VLC_TRUE ); 124 add_integer( "bandwidth", 0, NULL, BANDWIDTH_TEXT, BANDWIDTH_LONGTEXT, 125 VLC_TRUE ); 126 add_integer( "modulation", 0, NULL, MODULATION_TEXT, MODULATION_LONGTEXT, 127 VLC_TRUE ); 128 add_integer( "guard", 0, NULL, GUARD_TEXT, GUARD_LONGTEXT, VLC_TRUE ); 129 add_integer( "transmission", 0, NULL, TRANSMISSION_TEXT, 130 TRANSMISSION_LONGTEXT, VLC_TRUE ); 131 add_integer( "hierarchy", 0, NULL, HIERARCHY_TEXT, HIERARCHY_LONGTEXT, 132 VLC_TRUE ); 133 102 134 set_capability( "access", 0 ); 103 add_category_hint( N_("Input"), NULL, VLC_FALSE );104 add_integer( "adapter", 0, NULL, ADAPTER_TEXT, ADAPTER_LONGTEXT, VLC_FALSE );105 add_integer( "device", 0, NULL, DEVICE_TEXT, DEVICE_LONGTEXT, VLC_FALSE );106 add_integer( "frequency", 11954000, NULL, FREQ_TEXT, FREQ_LONGTEXT, VLC_FALSE );107 add_integer( "polarization", 0, NULL, POL_TEXT, POL_LONGTEXT, VLC_FALSE );108 add_integer( "fec", 3, NULL, FEC_TEXT, FEC_LONGTEXT, VLC_FALSE );109 add_integer( "symbol-rate", 27500000, NULL, SRATE_TEXT, SRATE_LONGTEXT, VLC_FALSE );110 add_bool( "diseqc", 0, NULL, DISEQC_TEXT, DISEQC_LONGTEXT, VLC_FALSE );111 add_integer( "lnb-lof1", 9750000, NULL, LNB_LOF1_TEXT, LNB_LOF1_LONGTEXT, VLC_FALSE );112 add_integer( "lnb-lof2", 12999000, NULL, LNB_LOF2_TEXT, LNB_LOF2_LONGTEXT, VLC_FALSE );113 add_integer( "lnb-slof", 11700000, NULL, LNB_SLOF_TEXT, LNB_SLOF_LONGTEXT, VLC_FALSE );114 add_bool( "probe", 0, NULL, PROBE_TEXT, PROBE_LONGTEXT, VLC_FALSE );115 add_integer( "code-rate-hp", 9, NULL, CODE_RATE_HP_TEXT, CODE_RATE_HP_LONGTEXT, VLC_FALSE );116 add_integer( "code-rate-lp", 9, NULL, CODE_RATE_LP_TEXT, CODE_RATE_LP_LONGTEXT, VLC_FALSE );117 add_integer( "bandwidth", 0, NULL, BANDWIDTH_TEXT, BANDWIDTH_LONGTEXT, VLC_FALSE );118 add_integer( "modulation", 0, NULL, MODULATION_TEXT, MODULATION_LONGTEXT, VLC_FALSE );119 add_integer( "guard", 0, NULL, GUARD_TEXT, GUARD_LONGTEXT, VLC_TRUE );120 add_integer( "transmission", 0, NULL, TRANSMISSION_TEXT, TRANSMISSION_LONGTEXT, VLC_TRUE );121 add_integer( "hierarchy", 0, NULL, HIERARCHY_TEXT, HIERARCHY_LONGTEXT, VLC_TRUE );122 135 add_shortcut( "qpsk" ); 123 136 add_shortcut( "cable" ); … … 127 140 set_callbacks( E_(Open), E_(Close) ); 128 141 vlc_module_end(); 129 modules/access/dvd/dvd.c
re53ac06 r630d42d 3 3 ***************************************************************************** 4 4 * Copyright (C) 2000-2001 VideoLAN 5 * $Id: dvd.c,v 1. 9 2003/11/05 00:39:16gbazin Exp $5 * $Id: dvd.c,v 1.10 2004/01/25 17:31:22 gbazin Exp $ 6 6 * 7 7 * Authors: Samuel Hocevar <sam@zoy.org> … … 63 63 * Module descriptor 64 64 *****************************************************************************/ 65 #define CSSMETHOD_TEXT N_("Method to use by libdvdcss for keydecryption")65 #define CSSMETHOD_TEXT N_("Method used by libdvdcss for decryption") 66 66 #define CSSMETHOD_LONGTEXT N_( \ 67 67 "Set the method used by libdvdcss for key decryption.\n" \ … … 99 99 i = 100; 100 100 #endif 101 101 102 add_shortcut( "dvdold" ); 102 103 add_shortcut( "dvdsimple" ); modules/access/file.c
r1e69605 r630d42d 3 3 ***************************************************************************** 4 4 * Copyright (C) 2001, 2002 VideoLAN 5 * $Id: file.c,v 1.2 1 2003/06/09 09:29:12 massiotExp $5 * $Id: file.c,v 1.22 2004/01/25 17:31:22 gbazin Exp $ 6 6 * 7 7 * Authors: Christophe Massiot <massiot@via.ecp.fr> … … 77 77 vlc_module_begin(); 78 78 set_description( _("Standard filesystem file input") ); 79 add_category_hint( N_("file"), NULL, VLC_TRUE );80 79 add_integer( "file-caching", DEFAULT_PTS_DELAY / 1000, NULL, CACHING_TEXT, CACHING_LONGTEXT, VLC_TRUE ); 81 80 set_capability( "access", 50 ); modules/access/ftp.c
rbf805a8 r630d42d 1 1 /***************************************************************************** 2 * ftp.c: 2 * ftp.c: FTP input module 3 3 ***************************************************************************** 4 4 * Copyright (C) 2001-2004 VideoLAN 5 * $Id: ftp.c,v 1.2 4 2004/01/08 00:37:18 fenrirExp $5 * $Id: ftp.c,v 1.25 2004/01/25 17:31:22 gbazin Exp $ 6 6 * 7 7 * Authors: Laurent Aimar <fenrir@via.ecp.fr> … … 42 42 "Allows you to modify the default caching value for ftp streams. This " \ 43 43 "value should be set in millisecond units." ) 44 #define USER_TEXT N_("FTP user name") 45 #define USER_LONGTEXT N_("Allows you to modify the user name that will " \ 46 "be used for the connection.") 47 #define PASS_TEXT N_("FTP password") 48 #define PASS_LONGTEXT N_("Allows you to modify the password that will be " \ 49 "used for the connection.") 50 #define ACCOUNT_TEXT N_("FTP account") 51 #define ACCOUNT_LONGTEXT N_("Allows you to modify the account that will be " \ 52 "used for the connection.") 44 53 45 54 vlc_module_begin(); 46 55 set_description( _("FTP input") ); 47 56 set_capability( "access", 0 ); 48 add_category_hint( "stream", NULL, VLC_FALSE ); 49 add_integer( "ftp-caching", 2 * DEFAULT_PTS_DELAY / 1000, NULL, 50 CACHING_TEXT, CACHING_LONGTEXT, VLC_TRUE ); 51 add_string( "ftp-user", "anonymous", NULL, "ftp user name", "ftp user name", VLC_FALSE ); 52 add_string( "ftp-pwd", "anonymous@dummy.org", NULL, "ftp password", "ftp password, be careful with that option...", VLC_FALSE ); 53 add_string( "ftp-account", "anonymous", NULL, "ftp account", "ftp account", VLC_FALSE ); 57 add_integer( "ftp-caching", 2 * DEFAULT_PTS_DELAY / 1000, NULL, 58 CACHING_TEXT, CACHING_LONGTEXT, VLC_TRUE ); 59 add_string( "ftp-user", "anonymous", NULL, USER_TEXT, USER_LONGTEXT, 60 VLC_FALSE ); 61 add_string( "ftp-pwd", "anonymous@dummy.org", NULL, PASS_TEXT, 62 PASS_LONGTEXT, VLC_FALSE ); 63 add_string( "ftp-account", "anonymous", NULL, ACCOUNT_TEXT, 64 ACCOUNT_LONGTEXT, VLC_FALSE ); 54 65 add_shortcut( "ftp" ); 55 66 set_callbacks( Open, Close ); … … 116 127 /* *** Open a TCP connection with server *** */ 117 128 msg_Dbg( p_input, "waiting for connection..." ); 118 p_sys->fd_cmd = net_OpenTCP( p_input, p_sys->url.psz_host, p_sys->url.i_port ); 129 p_sys->fd_cmd = net_OpenTCP( p_input, p_sys->url.psz_host, 130 p_sys->url.i_port ); 119 131 if( p_sys->fd_cmd < 0 ) 120 132 { … … 173 185 case 3: 174 186 msg_Dbg( p_input, "account needed" ); 175 var_Create( p_input, "ftp-account", VLC_VAR_STRING | VLC_VAR_DOINHERIT ); 187 var_Create( p_input, "ftp-account", 188 VLC_VAR_STRING | VLC_VAR_DOINHERIT ); 176 189 var_Get( p_input, "ftp-account", &val ); 177 if( ftp_SendCommand( p_input, "ACCT %s", val.psz_string ) < 0 || 190 if( ftp_SendCommand( p_input, "ACCT %s", 191 val.psz_string ) < 0 || 178 192 ftp_ReadCommand( p_input, &i_answer, NULL ) < 0 ) 179 193 { … … 309 323 * Read: 310 324 *****************************************************************************/ 311 static ssize_t Read ( input_thread_t * p_input, byte_t * p_buffer,312 size_t i_len )325 static ssize_t Read( input_thread_t * p_input, byte_t * p_buffer, 326 size_t i_len ) 313 327 { 314 328 access_sys_t *p_sys = p_input->p_access_data; … … 320 334 * ftp_*: 321 335 *****************************************************************************/ 322 static int ftp_SendCommand( input_thread_t *p_input, char *psz_fmt, ... )336 static int ftp_SendCommand( input_thread_t *p_input, char *psz_fmt, ... ) 323 337 { 324 338 access_sys_t *p_sys = p_input->p_access_data; … … 332 346 333 347 msg_Dbg( p_input, "ftp_SendCommand:\"%s\"", psz_cmd); 334 if( ( i_ret = net_Printf( VLC_OBJECT(p_input), p_sys->fd_cmd, "%s", psz_cmd ) ) > 0 ) 348 if( ( i_ret = net_Printf( VLC_OBJECT(p_input), p_sys->fd_cmd, 349 "%s", psz_cmd ) ) > 0 ) 335 350 { 336 351 i_ret = net_Printf( VLC_OBJECT(p_input), p_sys->fd_cmd, "\n" ); … … 360 375 These strings are not part of the requests, except in the case \377\377, 361 376 where the request contains one \377. */ 362 static int ftp_ReadCommand( input_thread_t *p_input,363 int *pi_answer, char **ppsz_answer )377 static int ftp_ReadCommand( input_thread_t *p_input, 378 int *pi_answer, char **ppsz_answer ) 364 379 { 365 380 access_sys_t *p_sys = p_input->p_access_data; … … 392 407 } 393 408 394 static int ftp_StartStream( input_thread_t *p_input, off_t i_start )409 static int ftp_StartStream( input_thread_t *p_input, off_t i_start ) 395 410 { 396 411 access_sys_t *p_sys = p_input->p_access_data; … … 411 426 412 427 psz_parser = strchr( psz_arg, '(' ); 413 if( !psz_parser || sscanf( psz_parser, "(%d,%d,%d,%d,%d,%d", &a1, &a2, &a3, &a4, &p1, &p2 ) < 6 ) 428 if( !psz_parser || 429 sscanf( psz_parser, "(%d,%d,%d,%d,%d,%d", &a1, &a2, &a3, 430 &a4, &p1, &p2 ) < 6 ) 414 431 { 415 432 free( psz_arg ); … … 460 477 } 461 478 462 static int ftp_StopStream ( input_thread_t *p_input)479 static int ftp_StopStream ( input_thread_t *p_input) 463 480 { 464 481 access_sys_t *p_sys = p_input->p_access_data; … … 478 495 return VLC_SUCCESS; 479 496 } 480 modules/access/http.c
r9ff9865 r630d42d 1 1 /***************************************************************************** 2 * http.c: HTTP access plug-in2 * http.c: HTTP input module 3 3 ***************************************************************************** 4 4 * Copyright (C) 2001-2004 VideoLAN 5 * $Id: http.c,v 1.5 6 2004/01/15 13:45:27 fenrirExp $5 * $Id: http.c,v 1.57 2004/01/25 17:31:22 gbazin Exp $ 6 6 * 7 7 * Authors: Laurent Aimar <fenrir@via.ecp.fr> … … 40 40 static void Close( vlc_object_t * ); 41 41 42 #define PROXY_TEXT N_(" Specify anHTTP proxy")42 #define PROXY_TEXT N_("HTTP proxy") 43 43 #define PROXY_LONGTEXT N_( \ 44 " Specify an HTTP proxy to use. It must be inthe form " \44 "You can specify an HTTP proxy to use. It must be of the form " \ 45 45 "http://myproxy.mydomain:myport/. If none is specified, the HTTP_PROXY " \ 46 46 "environment variable will be tried." ) … … 51 51 "value should be set in millisecond units." ) 52 52 53 #define USER_TEXT N_("HTTP user name") 54 #define USER_LONGTEXT N_("Allows you to modify the user name that will " \ 55 "be used for the connection (Basic authentification only).") 56 57 #define PASS_TEXT N_("HTTP password") 58 #define PASS_LONGTEXT N_("Allows you to modify the password that will be " \ 59 "used for the connection.") 60 61 #define AGENT_TEXT N_("HTTP user agent") 62 #define AGENT_LONGTEXT N_("Allows you to modify the user agent that will be " \ 63 "used for the connection.") 64 53 65 vlc_module_begin(); 54 66 set_description( _("HTTP input") ); 55 67 set_capability( "access", 0 ); 56 add_category_hint( N_("http"), NULL, VLC_FALSE ); 57 add_string( "http-proxy", NULL, NULL, PROXY_TEXT, PROXY_LONGTEXT, VLC_FALSE ); 58 add_integer( "http-caching", 4 * DEFAULT_PTS_DELAY / 1000, NULL, CACHING_TEXT, CACHING_LONGTEXT, VLC_TRUE ); 59 add_string( "http-user", NULL, NULL, "HTTP user name", "HTTP user name for Basic Authentification", VLC_FALSE ); 60 add_string( "http-pwd", NULL , NULL, "HTTP password", "HTTP password for Basic Authentification", VLC_FALSE ); 61 add_string( "http-user-agent", COPYRIGHT_MESSAGE , NULL, "HTTP user agent", "HTTP user agent", VLC_FALSE ); 68 69 add_string( "http-proxy", NULL, NULL, PROXY_TEXT, PROXY_LONGTEXT, 70 VLC_FALSE ); 71 add_integer( "http-caching", 4 * DEFAULT_PTS_DELAY / 1000, NULL, 72 CACHING_TEXT, CACHING_LONGTEXT, VLC_TRUE ); 73 add_string( "http-user", NULL, NULL, USER_TEXT, USER_LONGTEXT, VLC_FALSE ); 74 add_string( "http-pwd", NULL , NULL, PASS_TEXT, PASS_LONGTEXT, VLC_FALSE ); 75 add_string( "http-user-agent", COPYRIGHT_MESSAGE , NULL, AGENT_TEXT, 76 AGENT_LONGTEXT, VLC_FALSE ); 77 62 78 add_shortcut( "http" ); 63 79 add_shortcut( "http4" ); … … 213 229 } 214 230 215 msg_Dbg( p_input, "http: server='%s' port=%d file='%s", p_sys->url.psz_host, p_sys->url.i_port, p_sys->url.psz_path ); 231 msg_Dbg( p_input, "http: server='%s' port=%d file='%s", 232 p_sys->url.psz_host, p_sys->url.i_port, p_sys->url.psz_path ); 216 233 if( p_sys->b_proxy ) 217 234 { 218 msg_Dbg( p_input, " proxy %s:%d", p_sys->proxy.psz_host, p_sys->proxy.i_port ); 235 msg_Dbg( p_input, " proxy %s:%d", p_sys->proxy.psz_host, 236 p_sys->proxy.i_port ); 219 237 } 220 238 if( p_sys->psz_user && *p_sys->psz_user ) 221 239 { 222 msg_Dbg( p_input, " user='%s', pwd='%s'", p_sys->psz_user, p_sys->psz_passwd ); 240 msg_Dbg( p_input, " user='%s', pwd='%s'", 241 p_sys->psz_user, p_sys->psz_passwd ); 223 242 } 224 243 225 244 /* Connect */ 226 if( Connect( p_input, &p_input->stream.b_seekable, &p_input->stream.p_selected_area->i_size, 0 ) ) 245 if( Connect( p_input, &p_input->stream.b_seekable, 246 &p_input->stream.p_selected_area->i_size, 0 ) ) 227 247 { 228 248 /* Retry with http 1.0 */ … … 230 250 231 251 if( p_input->b_die || 232 Connect( p_input, &p_input->stream.b_seekable, &p_input->stream.p_selected_area->i_size, 0 ) ) 252 Connect( p_input, &p_input->stream.b_seekable, 253 &p_input->stream.p_selected_area->i_size, 0 ) ) 233 254 { 234 255 goto error; … … 282 303 p_input->psz_demux = strdup( "mp3" ); 283 304 } 284 msg_Info( p_input, "ICY server found, %s demuxer selected", p_input->psz_demux ); 305 msg_Info( p_input, "ICY server found, %s demuxer selected", 306 p_input->psz_demux ); 285 307 } 286 308 … … 346 368 net_Close( p_sys->fd ); p_sys->fd = -1; 347 369 348 if( Connect( p_input, &p_input->stream.b_seekable, &p_input->stream.p_selected_area->i_size, i_pos ) ) 370 if( Connect( p_input, &p_input->stream.b_seekable, 371 &p_input->stream.p_selected_area->i_size, i_pos ) ) 349 372 { 350 373 msg_Err( p_input, "seek failed" ); … … 436 459 * Connect: 437 460 *****************************************************************************/ 438 static int Connect( input_thread_t *p_input, vlc_bool_t *pb_seekable, off_t *pi_size, off_t i_tell ) 461 static int Connect( input_thread_t *p_input, vlc_bool_t *pb_seekable, 462 off_t *pi_size, off_t i_tell ) 439 463 { 440 464 access_sys_t *p_sys = p_input->p_access_data; … … 464 488 net_Printf( VLC_OBJECT(p_input), p_sys->fd, 465 489 "GET http://%s:%d/%s HTTP/1.%d\r\n", 466 p_sys->url.psz_host, p_sys->url.i_port, p_sys->url.psz_path,467 p_sys-> i_version );490 p_sys->url.psz_host, p_sys->url.i_port, 491 p_sys->url.psz_path, p_sys->i_version ); 468 492 } 469 493 else … … 475 499 } 476 500 net_Printf( VLC_OBJECT(p_input), p_sys->fd, 477 "GET %s HTTP/1.%d\r\n" 478 "Host: %s\r\n", 501 "GET %s HTTP/1.%d\r\nHost: %s\r\n", 479 502 psz_path, p_sys->i_version, p_sys->url.psz_host ); 480 503 } 481 504 /* User Agent */ 482 net_Printf( VLC_OBJECT(p_input), p_sys->fd, "User-Agent: %s\r\n", p_sys->psz_user_agent ); 505 net_Printf( VLC_OBJECT(p_input), p_sys->fd, "User-Agent: %s\r\n", 506 p_sys->psz_user_agent ); 483 507 /* Offset */ 484 508 if( p_sys->i_version == 1 ) … … 498 522 b64 = b64_encode( buf ); 499 523 500 net_Printf( VLC_OBJECT(p_input), p_sys->fd, "Authorization: Basic %s", b64 ); 524 net_Printf( VLC_OBJECT(p_input), p_sys->fd, 525 "Authorization: Basic %s", b64 ); 501 526 free( b64 ); 502 527 } … … 505 530 if( net_Printf( VLC_OBJECT(p_input), p_sys->fd, "\r\n" ) < 0 ) 506 531 { 507 msg_Err( p_input, " Failed to send request\n" );532 msg_Err( p_input, "failed to send request" ); 508 533 net_Close( p_sys->fd ); p_sys->fd = -1; 509 534 return VLC_EGENERIC; … … 517 542 if( ( psz = net_Gets( VLC_OBJECT(p_input), p_sys->fd ) ) == NULL ) 518 543 { 519 msg_Err( p_input, " Failed to read answer\n" );544 msg_Err( p_input, "failed to read answer" ); 520 545 goto error; 521 546 } … … 536 561 goto error; 537 562 } 538 msg_Dbg( p_input, "Protocol '%s' answer code %d", p_sys->psz_protocol, p_sys->i_code ); 563 msg_Dbg( p_input, "protocol '%s' answer code %d", 564 p_sys->psz_protocol, p_sys->i_code ); 539 565 if( !strcmp( p_sys->psz_protocol, "ICY" ) ) 540 566 { … … 560 586 if( psz == NULL ) 561 587 { 562 msg_Err( p_input, " Failed to read answer\n" );588 msg_Err( p_input, "failed to read answer" ); 563 589 goto error; 564 590 } modules/access/mms/mms.c
r5deafc1 r630d42d 2 2 * mms.c: MMS over tcp, udp and http access plug-in 3 3 ***************************************************************************** 4 * Copyright (C) 200 1, 2002VideoLAN5 * $Id: mms.c,v 1.3 5 2004/01/21 16:56:16 fenrirExp $4 * Copyright (C) 2002-2004 VideoLAN 5 * $Id: mms.c,v 1.36 2004/01/25 17:31:22 gbazin Exp $ 6 6 * 7 7 * Authors: Laurent Aimar <fenrir@via.ecp.fr> … … 60 60 "value should be set in miliseconds units." ) 61 61 62 #define ALL_TEXT N_("Force selection of all streams") 63 64 #define BITRATE_TEXT N_("Selct maximum bitrate stream") 65 #define BITRATE_LONGTEXT N_( \ 66 "Always select the stream with the maximum bitrate." ) 67 62 68 vlc_module_begin(); 63 69 set_description( _("Microsoft Media Server (MMS) input") ); 64 70 set_capability( "access", 0 ); 65 add_category_hint( "stream", NULL, VLC_TRUE ); 66 add_integer( "mms-caching", 4 * DEFAULT_PTS_DELAY / 1000, NULL, 67 CACHING_TEXT, CACHING_LONGTEXT, VLC_TRUE ); 68 69 add_bool( "mms-all", 0, NULL, 70 "force selection of all streams", 71 "force selection of all streams", VLC_TRUE ); 72 add_integer( "mms-maxbitrate", 0, NULL, 73 "max bitrate", 74 "set max bitrate for auto streams selections", VLC_FALSE ); 71 72 add_integer( "mms-caching", 4 * DEFAULT_PTS_DELAY / 1000, NULL, 73 CACHING_TEXT, CACHING_LONGTEXT, VLC_TRUE ); 74 75 add_bool( "mms-all", 0, NULL, ALL_TEXT, "", VLC_TRUE ); 76 add_integer( "mms-maxbitrate", 0, NULL, BITRATE_TEXT, BITRATE_LONGTEXT , 77 VLC_FALSE ); 78 75 79 add_shortcut( "mms" ); 76 80 add_shortcut( "mmsu" ); … … 80 84 vlc_module_end(); 81 85 82 86 /***************************************************************************** 87 * Open: 88 *****************************************************************************/ 83 89 static int Open( vlc_object_t *p_this ) 84 90 { modules/access/pvr/pvr.c
r5a6c9e6 r630d42d 3 3 ***************************************************************************** 4 4 * Copyright (C) 2001, 2002 VideoLAN 5 * $Id: pvr.c,v 1.1 0 2003/11/23 18:31:54 alexisExp $5 * $Id: pvr.c,v 1.11 2004/01/25 17:31:22 gbazin Exp $ 6 6 * 7 7 * Authors: Eric Petit <titer@videolan.org> … … 75 75 *****************************************************************************/ 76 76 vlc_module_begin(); 77 set_description( _(" input for encoding cards supported by the ivtv drivers") );77 set_description( _("MPEG Encoding cards input (with ivtv drivers)") ); 78 78 set_capability( "access", 0 ); 79 79 add_shortcut( "pvr" ); modules/access/satellite/satellite.c
r5a6c9e6 r630d42d 70 70 71 71 vlc_module_begin(); 72 add_category_hint( N_("Input"), NULL, VLC_FALSE ); 73 add_integer( "dvb-dmx", 0, NULL, DEMUX_TEXT, DEMUX_LONGTEXT, 74 VLC_FALSE ); 75 add_integer( "dvb-tuner", 0, NULL, TUNER_TEXT, TUNER_LONGTEXT, 76 VLC_FALSE ); 77 add_integer( "frequency", 0, NULL, FREQ_TEXT, FREQ_LONGTEXT, 78 VLC_FALSE ); 79 add_integer( "polarization", 0, NULL, POL_TEXT, POL_LONGTEXT, 80 VLC_FALSE ); 81 add_integer( "fec", 3, NULL, FEC_TEXT, FEC_LONGTEXT, VLC_FALSE ); 82 add_integer( "symbol-rate", 27500000, NULL, SRATE_TEXT, SRATE_LONGTEXT, 83 VLC_FALSE ); 84 add_bool( "diseqc", 0, NULL, DISEQC_TEXT, DISEQC_LONGTEXT, VLC_FALSE ); 85 add_integer( "lnb-lof1", 10000000, NULL, 86 LNB_LOF1_TEXT, LNB_LOF1_LONGTEXT, VLC_FALSE ); 87 add_integer( "lnb-lof2", 10000000, NULL, 88 LNB_LOF2_TEXT, LNB_LOF2_LONGTEXT, VLC_FALSE ); 89 add_integer( "lnb-slof", 11700000, NULL, 90 LNB_SLOF_TEXT, LNB_SLOF_LONGTEXT, VLC_FALSE ); 91 set_description( _("satellite input") ); 72 set_description( _("Satellite input") ); 73 74 add_integer( "dvb-dmx", 0, NULL, DEMUX_TEXT, DEMUX_LONGTEXT, VLC_FALSE ); 75 add_integer( "dvb-tuner", 0, NULL, TUNER_TEXT, TUNER_LONGTEXT, VLC_FALSE ); 76 add_integer( "frequency", 0, NULL, FREQ_TEXT, FREQ_LONGTEXT, VLC_FALSE ); 77 add_integer( "polarization", 0, NULL, POL_TEXT, POL_LONGTEXT, VLC_FALSE ); 78 add_integer( "fec", 3, NULL, FEC_TEXT, FEC_LONGTEXT, VLC_FALSE ); 79 add_integer( "symbol-rate", 27500000, NULL, SRATE_TEXT, SRATE_LONGTEXT, 80 VLC_FALSE ); 81 add_bool( "diseqc", 0, NULL, DISEQC_TEXT, DISEQC_LONGTEXT, VLC_TRUE ); 82 add_integer( "lnb-lof1", 10000000, NULL, 83 LNB_LOF1_TEXT, LNB_LOF1_LONGTEXT, VLC_TRUE ); 84 add_integer( "lnb-lof2", 10000000, NULL, 85 LNB_LOF2_TEXT, LNB_LOF2_LONGTEXT, VLC_TRUE ); 86 add_integer( "lnb-slof", 11700000, NULL, 87 LNB_SLOF_TEXT, LNB_SLOF_LONGTEXT, VLC_TRUE ); 88 92 89 set_capability( "access", 0 ); 93 90 add_shortcut( "sat" ); modules/access/slp.c
rf083827 r630d42d 2 2 * slp.c: SLP access plugin 3 3 ***************************************************************************** 4 * Copyright (C) 200 1, 2002VideoLAN5 * $Id: slp.c,v 1. 19 2004/01/17 12:28:56gbazin Exp $4 * Copyright (C) 2002-2004 VideoLAN 5 * $Id: slp.c,v 1.20 2004/01/25 17:31:22 gbazin Exp $ 6 6 * 7 7 * Authors: Lo�Minier <lool@videolan.org> … … 39 39 static int Open ( vlc_object_t * ); 40 40 static void Close ( vlc_object_t * ); 41 static ssize_t Read ( input_thread_t *, byte_t *, size_t );41 static ssize_t Read( input_thread_t *, byte_t *, size_t ); 42 42 43 43 static int Init ( vlc_object_t * ); … … 51 51 *****************************************************************************/ 52 52 53 #define SRVTYPE_TEXT "SLP service type" 54 #define SRVTYPE_LONGTEXT "The service type string for SLP queries, " \ 55 "including the authority string (if any) for the " \ 56 "request. May not be empty" 57 #define ATTRIDS_TEXT "SLP attribute identifiers" 58 #define ATTRIDS_LONGTEXT "This string is a comma separated list of " \ 59 "attribute identifiers to search for a playlist "\ 60 "title or empty to use all attributes" 61 #define SCOPELIST_TEXT "SLP scopes list" 62 #define SCOPELIST_LONGTEXT "This string is a comma separated list of scope " \ 63 "names or empty if you want to use the default " \ 64 "scopes; it is used in all SLP queries" 65 #define NAMINGAUTHORITY_TEXT "SLP naming authority" 66 #define NAMINGAUTHORITY_LONGTEXT "This string is a list of naming " \ 67 "authorities to search. Use \"*\" for all " \ 68 "and the empty string for the default of " \ 69 "IANA" 70 #define FILTER_TEXT "SLP LDAP filter" 71 #define FILTER_LONGTEXT "This is a query formulated of attribute pattern " \ 72 "matching expressions in the form of an LDAPv3 " \ 73 "search filter or empty for all answers" 74 #define LANG_TEXT "Language requested in SLP requests" 75 #define LANG_LONGTEXT "RFC 1766 Language Tag for the natural language " \ 76 "locale of requests, leave empty to use the " \ 77 "default locale; it is used in all SLP queries" 53 #if 0 54 #define SRVTYPE_TEXT /*N_*/("SLP service type") 55 #define SRVTYPE_LONGTEXT /*N_*/( \ 56 "The service type string for SLP queries, including the authority " \ 57 "string (if any) for the request. May not be empty." ) 58 #endif 59 60 #define ATTRIDS_TEXT N_("SLP attribute identifiers") 61 #define ATTRIDS_LONGTEXT N_( \ 62 "This string is a comma separated list of attribute identifiers to " \ 63 "search for a playlist title or empty to use all attributes." ) 64 65 #define SCOPELIST_TEXT N_("SLP scopes list") 66 #define SCOPELIST_LONGTEXT N_( \ 67 "This string is a comma separated list of scope names or empty if you " \ 68 "want to use the default scopes. It is used in all SLP queries." ) 69 70 #define NAMINGAUTHORITY_TEXT N_("SLP naming authority") 71 #define NAMINGAUTHORITY_LONGTEXT N_( \ 72 "This string is a list of naming authorities to search. " \ 73 "Use \"*\" for all and the empty string for the default of IANA." ) 74 75 #define FILTER_TEXT N_("SLP LDAP filter") 76 #define FILTER_LONGTEXT N_( \ 77 "This is a query formulated of attribute pattern matching expressions " \ 78 "in the form of an LDAPv3 search filter or empty for all answers." ) 79 80 #define LANG_TEXT N_("Language requested in SLP requests") 81 #define LANG_LONGTEXT N_( \ 82 "RFC 1766 Language tag for the natural language locale of requests, " \ 83 "leave empty to use the default locale. It is used in all SLP queries." ) 78 84 79 85 vlc_module_begin(); 80 86 set_description( _("SLP input") ); 81 add_category_hint( N_("slp"), NULL, VLC_TRUE ); 82 add_string( "slp-attrids", "", NULL, ATTRIDS_TEXT, ATTRIDS_LONGTEXT, VLC_TRUE ); 87 88 add_string( "slp-attrids", "", NULL, ATTRIDS_TEXT, ATTRIDS_LONGTEXT, 89 VLC_TRUE ); 83 90 add_string( "slp-scopelist", "", NULL, SCOPELIST_TEXT, 84 91 SCOPELIST_LONGTEXT, VLC_TRUE ); 85 92 add_string( "slp-namingauthority", "*", NULL, NAMINGAUTHORITY_TEXT, 86 93 NAMINGAUTHORITY_LONGTEXT, VLC_TRUE ); 87 add_string( "slp-filter", "", NULL, FILTER_TEXT, FILTER_LONGTEXT, VLC_TRUE ); 94 add_string( "slp-filter", "", NULL, FILTER_TEXT, FILTER_LONGTEXT, 95 VLC_TRUE ); 88 96 add_string( "slp-lang", "", NULL, LANG_TEXT, LANG_LONGTEXT, VLC_TRUE ); 97 89 98 set_capability( "access", 0 ); 90 99 set_callbacks( Open, Close ); … … 156 165 if( (slpe_errcode != SLP_OK) ) 157 166 { 158 msg_Err( p_input, 159 "SrvUrlCallback got an error %i with URL %s", 160 slpe_errcode, 161 psz_srvurl ); 167 msg_Err( p_input, "SrvUrlCallback got an error %i with URL %s", 168 slpe_errcode, psz_srvurl ); 162 169 return SLP_TRUE; 163 170 } … … 235 242 236 243 msg_Info( (input_thread_t *)p_input, 237 "added � %s � (lifetime %i) to playlist", 238 psz_srvurl, 239 i_lifetime ); 244 "added � %s � (lifetime %i) to playlist", 245 psz_srvurl, i_lifetime ); 240 246 241 247 return SLP_TRUE; … … 256 262 char *psz_service; 257 263 258 msg_Dbg( p_input,"Services: %s",psz_srvurl);264 msg_Dbg( p_input, "services: %s", psz_srvurl ); 259 265 /* our callback was only called to tell us there's nothing more to read */ 260 266 if( slpe_errcode == SLP_LAST_CALL ) … … 263 269 } 264 270 265 msg_Dbg( p_input,"Services: %s",psz_srvurl);271 msg_Dbg( p_input, "services: %s", psz_srvurl ); 266 272 267 273 /* or there was a problem with getting the data we requested */ 268 274 if( slpe_errcode != SLP_OK ) 269 275 { 270 msg_Err( p_input, 271 "SrvTypeCallback got an error %i with URL %s", 272 slpe_errcode, 273 psz_srvurl ); 276 msg_Err( p_input, "SrvTypeCallback got an error %i with URL %s", 277 slpe_errcode, psz_srvurl ); 274 278 return SLP_TRUE; 275 279 } … … 299 303 psz_service = strdup( psz_srvurl); 300 304 301 msg_Dbg( p_input,"Getting details for %s",psz_service);305 msg_Dbg( p_input, "getting details for %s", psz_service ); 302 306 303 307 slpe_result = SLPFindSrvs( slph_slp2, … … 318 322 msg_Err( p_input, 319 323 "SLPFindSrvs error %i finding servers of type %s", 320 slpe_result, 321 psz_service ); 324 slpe_result, psz_service ); 322 325 } 323 326 } … … 444 447 return; 445 448 } 446 modules/access/tcp.c
rff475a9 r630d42d 1 1 /***************************************************************************** 2 * tcp.c: TCP access plug-in2 * tcp.c: TCP input module 3 3 ***************************************************************************** 4 * Copyright (C) 2003 VideoLAN5 * $Id: tcp.c,v 1. 3 2004/01/05 15:07:16 fenrirExp $4 * Copyright (C) 2003-2004 VideoLAN 5 * $Id: tcp.c,v 1.4 2004/01/25 17:31:22 gbazin Exp $ 6 6 * 7 7 * Authors: Laurent Aimar <fenrir@via.ecp.fr> … … 35 35 * Module descriptor 36 36 *****************************************************************************/ 37 #define CACHING_TEXT N_(" caching value in ms")37 #define CACHING_TEXT N_("Caching value in ms") 38 38 #define CACHING_LONGTEXT N_( \ 39 39 "Allows you to modify the default caching value for udp streams. This " \ … …
