Commit a1f5d9f4 authored by Rocky Bernstein's avatar Rocky Bernstein

Switch over to using "cd-audio" and "vcd" configuration variables.

parent cbbcad97
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* cddax.c : CD digital audio input module for vlc using libcdio * cddax.c : CD digital audio input module for vlc using libcdio
***************************************************************************** *****************************************************************************
* Copyright (C) 2000,2003 VideoLAN * Copyright (C) 2000,2003 VideoLAN
* $Id: access.c,v 1.13 2003/12/05 02:33:49 rocky Exp $ * $Id: access.c,v 1.14 2003/12/11 12:56:25 rocky Exp $
* *
* Authors: Rocky Bernstein <rocky@panix.com> * Authors: Rocky Bernstein <rocky@panix.com>
* Laurent Aimar <fenrir@via.ecp.fr> * Laurent Aimar <fenrir@via.ecp.fr>
...@@ -836,7 +836,7 @@ E_(Open)( vlc_object_t *p_this ) ...@@ -836,7 +836,7 @@ E_(Open)( vlc_object_t *p_this )
free( psz_orig ); free( psz_orig );
return -1; return -1;
} }
psz_source = config_GetPsz( p_input, MODULE_STRING "-device" ); psz_source = config_GetPsz( p_input, "cd-audio" );
if( !psz_source || 0==strlen(psz_source) ) { if( !psz_source || 0==strlen(psz_source) ) {
/* Scan for a CD-ROM drive with a CD-DA in it. */ /* Scan for a CD-ROM drive with a CD-DA in it. */
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* cddax.c : CD digital audio input module for vlc using libcdio * cddax.c : CD digital audio input module for vlc using libcdio
***************************************************************************** *****************************************************************************
* Copyright (C) 2000,2003 VideoLAN * Copyright (C) 2000,2003 VideoLAN
* $Id: cdda.c,v 1.10 2003/12/05 02:33:49 rocky Exp $ * $Id: cdda.c,v 1.11 2003/12/11 12:56:25 rocky Exp $
* *
* Authors: Rocky Bernstein <rocky@panix.com> * Authors: Rocky Bernstein <rocky@panix.com>
* Laurent Aimar <fenrir@via.ecp.fr> * Laurent Aimar <fenrir@via.ecp.fr>
...@@ -129,10 +129,6 @@ vlc_module_begin(); ...@@ -129,10 +129,6 @@ vlc_module_begin();
N_("Caching value in ms"), N_("Caching value in ms"),
CACHING_LONGTEXT, VLC_TRUE ); CACHING_LONGTEXT, VLC_TRUE );
add_string( MODULE_STRING "-device", "", NULL,
N_("CD-ROM device name"),
DEV_LONGTEXT, VLC_FALSE );
add_string( MODULE_STRING "-title-format", add_string( MODULE_STRING "-title-format",
"%T %M", NULL, "%T %M", NULL,
N_("Format to use in playlist 'title' field when no CDDB"), N_("Format to use in playlist 'title' field when no CDDB"),
......
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
* using libcdio, libvcd and libvcdinfo. vlc-specific things tend * using libcdio, libvcd and libvcdinfo. vlc-specific things tend
* to go here. * to go here.
***************************************************************************** *****************************************************************************
* Copyright (C) 2000,2003 VideoLAN * Copyright (C) 2000, 2003 VideoLAN
* $Id: access.c,v 1.9 2003/12/05 05:01:17 rocky Exp $ * $Id: access.c,v 1.10 2003/12/11 12:56:25 rocky Exp $
* *
* Authors: Rocky Bernstein <rocky@panix.com> * Authors: Rocky Bernstein <rocky@panix.com>
* Johan Bilien <jobi@via.ecp.fr> * Johan Bilien <jobi@via.ecp.fr>
...@@ -197,8 +197,10 @@ VCDRead( input_thread_t * p_input, byte_t * p_buffer, size_t i_len ) ...@@ -197,8 +197,10 @@ VCDRead( input_thread_t * p_input, byte_t * p_buffer, size_t i_len )
*p_buf = 0x01; *p_buf = 0x01;
dbg_print(INPUT_DBG_STILL, "Handled still event"); dbg_print(INPUT_DBG_STILL, "Handled still event");
#if 1
p_vcd->p_intf->p_sys->b_still = 1; p_vcd->p_intf->p_sys->b_still = 1;
input_SetStatus( p_input, INPUT_STATUS_PAUSE ); input_SetStatus( p_input, INPUT_STATUS_PAUSE );
#endif
vlc_mutex_lock( &p_input->stream.stream_lock ); vlc_mutex_lock( &p_input->stream.stream_lock );
...@@ -207,9 +209,10 @@ VCDRead( input_thread_t * p_input, byte_t * p_buffer, size_t i_len ) ...@@ -207,9 +209,10 @@ VCDRead( input_thread_t * p_input, byte_t * p_buffer, size_t i_len )
vlc_mutex_unlock( &p_input->stream.stream_lock ); vlc_mutex_unlock( &p_input->stream.stream_lock );
dbg_print(INPUT_DBG_STILL, "Clock manage");
input_ClockManageControl( p_input, p_pgrm, 0 ); input_ClockManageControl( p_input, p_pgrm, 0 );
dbg_print(INPUT_DBG_STILL, "Clock manage done");
p_vcd->p_intf->p_sys->b_still = 1;
input_SetStatus( p_input, INPUT_STATUS_PAUSE );
return i_read + M2F2_SECTOR_SIZE; return i_read + M2F2_SECTOR_SIZE;
} }
...@@ -825,7 +828,7 @@ VCDParse( input_thread_t * p_input, /*out*/ vcdinfo_itemid_t * p_itemid ) ...@@ -825,7 +828,7 @@ VCDParse( input_thread_t * p_input, /*out*/ vcdinfo_itemid_t * p_itemid )
/* No source specified, so figure it out. */ /* No source specified, so figure it out. */
if( !p_input->psz_access ) return NULL; if( !p_input->psz_access ) return NULL;
psz_source = config_GetPsz( p_input, MODULE_STRING "-device" ); psz_source = config_GetPsz( p_input, "vcd" );
if( !psz_source || 0==strlen(psz_source) ) { if( !psz_source || 0==strlen(psz_source) ) {
/* Scan for a CD-ROM drive with a VCD in it. */ /* Scan for a CD-ROM drive with a VCD in it. */
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* vcd.c : VCD input module for vlc * vcd.c : VCD input module for vlc
***************************************************************************** *****************************************************************************
* Copyright (C) 2000,2003 VideoLAN * Copyright (C) 2000,2003 VideoLAN
* $Id: vcd.c,v 1.10 2003/11/30 13:53:45 rocky Exp $ * $Id: vcd.c,v 1.11 2003/12/11 12:56:25 rocky Exp $
* *
* Authors: Rocky Bernstein <rocky@panix.com> * Authors: Rocky Bernstein <rocky@panix.com>
* *
...@@ -83,13 +83,6 @@ vlc_module_begin(); ...@@ -83,13 +83,6 @@ vlc_module_begin();
N_("set debug mask for additional debugging."), N_("set debug mask for additional debugging."),
DEBUG_LONGTEXT, VLC_TRUE ); DEBUG_LONGTEXT, VLC_TRUE );
add_string( MODULE_STRING "-device", "", NULL,
N_("VCD device name"),
N_("Specify the name of the Video Compact Disc device that "
"will be used by default. If you don't specify anything, "
"we'll scan for a suitable VCD device."),
VLC_FALSE );
add_bool( MODULE_STRING "-PBC", 0, NULL, add_bool( MODULE_STRING "-PBC", 0, NULL,
N_("Use playback control?"), N_("Use playback control?"),
N_("If VCD is authored with playback control, use it. " N_("If VCD is authored with playback control, use it. "
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment