Commit f2fe0dac authored by Derk-Jan Hartman's avatar Derk-Jan Hartman

* Forgot to commit the paranoia changes in the cddax module. see [17804]

  Patch by Patrick McLean <chutzpah at gentoo d0t org> 
parent f793c083
......@@ -743,13 +743,13 @@ int CDDAOpen( vlc_object_t *p_this )
char *psz_paranoia = config_GetPsz( p_access,
MODULE_STRING "-paranoia" );
p_cdda->e_paranoia = paranoia_none;
p_cdda->e_paranoia = PARANOIA_MODE_DISABLE;
if( psz_paranoia && *psz_paranoia )
{
if( !strncmp( psz_paranoia, "full", strlen("full") ) )
p_cdda->e_paranoia = paranoia_full;
p_cdda->e_paranoia = PARANOIA_MODE_FULL;
else if( !strncmp(psz_paranoia, "overlap", strlen("overlap")) )
p_cdda->e_paranoia = paranoia_overlap;
p_cdda->e_paranoia = PARANOIA_MODE_OVERLAP;
/* Use CD Paranoia? */
if( p_cdda->e_paranoia )
......@@ -764,7 +764,7 @@ int CDDAOpen( vlc_object_t *p_this )
{
msg_Warn( p_cdda_input, "unable to get paranoia support - "
"continuing without it." );
p_cdda->e_paranoia = paranoia_none;
p_cdda->e_paranoia = PARANOIA_MODE_DISABLE;
}
else
{
......@@ -775,7 +775,7 @@ int CDDAOpen( vlc_object_t *p_this )
/* Set reading mode for full or overlap paranoia,
* but allow skipping sectors. */
cdio_paranoia_modeset( p_cdda->paranoia,
paranoia_full == p_cdda->e_paranoia ?
PARANOIA_MODE_FULL == p_cdda->e_paranoia ?
PARANOIA_MODE_FULL^PARANOIA_MODE_NEVERSKIP :
PARANOIA_MODE_OVERLAP^PARANOIA_MODE_NEVERSKIP );
}
......
......@@ -71,12 +71,13 @@
#define CdIo_t CdIo
#endif
#if LIBCDIO_VERSION_NUM < 78
typedef enum {
paranoia_none = 0, /* Note: We make use of 0 as being the same as false */
paranoia_overlap = 1,
paranoia_full = 2
PARANOIA_MODE_DISABLE = 0x00, /* Note: We make use of 0 as being the same as false */
PARANOIA_MODE_OVERLAP = 0x04,
PARANOIA_MODE_FULL = 0xff
} paranoia_mode_t;
#endif
/*****************************************************************************
* cdda_data_t: CD audio information
......
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