#define HELP_TEXT N_("Support for VDR recordings (http://www.tvdr.de/).")
-#define CACHING_TEXT N_("Caching value in ms")
-#define CACHING_LONGTEXT N_( \
- "Caching value for files. This value should be set in milliseconds." )
-
#define CHAPTER_OFFSET_TEXT N_("Chapter offset in ms")
#define CHAPTER_OFFSET_LONGTEXT N_( \
"Move all chapters. This value should be set in milliseconds." )
set_help( HELP_TEXT )
set_subcategory( SUBCAT_INPUT_ACCESS )
set_description( N_("VDR recordings") )
- add_integer( "vdr-caching", 5 * DEFAULT_PTS_DELAY / 1000, NULL,
- CACHING_TEXT, CACHING_LONGTEXT, true )
- add_integer( "vdr-chapter-offset", 0, NULL,
+ add_integer( "vdr-chapter-offset", 0,
CHAPTER_OFFSET_TEXT, CHAPTER_OFFSET_LONGTEXT, true )
- add_float_with_range( "vdr-fps", 25, 1, 1000, NULL,
+ add_float_with_range( "vdr-fps", 25, 1, 1000,
FPS_TEXT, FPS_LONGTEXT, true )
set_capability( "access", 60 )
add_shortcut( "vdr" )
case ACCESS_GET_PTS_DELAY:
pi64 = va_arg( args, int64_t * );
- *pi64 = var_InheritInteger( p_access, "vdr-caching" ) * INT64_C(1000);
+ *pi64 = INT64_C(1000)
+ * var_InheritInteger( p_access, "file-caching" );
break;
case ACCESS_SET_PAUSE_STATE:
{
/* abort on read error */
msg_Err( p_access, "failed to read (%m)" );
- dialog_Fatal( p_access, _("File reading failed"), "%s",
+ dialog_Fatal( p_access, _("File reading failed"), "%s (%m)",
_("VLC could not read the file.") );
SwitchFile( p_access, -1 );
return 0;
error:
dialog_Fatal (p_access, _("File reading failed"), _("VLC could not"
- " open the file \"%s\"."), psz_path);
+ " open the file \"%s\". (%m)"), psz_path);
if( p_sys->fd != -1 )
{
close( p_sys->fd );