add_integer( "timeshift-granularity", 50, NULL, GRANULARITY_TEXT,
GRANULARITY_LONGTEXT, true );
add_directory( "timeshift-dir", 0, 0, DIR_TEXT, DIR_LONGTEXT, false );
- change_unsafe();
add_bool( "timeshift-force", false, NULL, FORCE_TEXT, FORCE_LONGTEXT,
false );
vlc_module_end();
access_t *p_src = p_access->p_source;
block_t *p_block;
+ int canc = vlc_savecancel ();
while( vlc_object_alive (p_access) )
{
/* Get a new block from the source */
/* Send dummy packet to avoid deadlock in Block() */
block_FifoPut( p_sys->p_fifo, block_New( p_access, 0 ) );
+ vlc_restorecancel (canc);
return NULL;
}
#endif
}
- if( asprintf( &psz_filename_base, "%s/vlc-timeshift-%d-%d-",
- psz_dir, getpid(), p_access->i_object_id ) == -1 )
+ if( asprintf( &psz_filename_base, "%s/vlc-timeshift-%d-%p-",
+ psz_dir, getpid(), p_access ) == -1 )
psz_filename_base = NULL;
free( psz_dir );