access_t *p_access = (access_t*) p_this;
access_sys_t * p_sys;
char * psz_tofree, * psz_parser, * psz_device;
-
vlc_value_t val;
struct v4l2_format vfmt;
p_access->p_sys = p_sys;
/* defaults values */
+ var_Create( p_access, "pvr-caching", VLC_VAR_INTEGER | VLC_VAR_DOINHERIT );
+
var_Create( p_access, "pvr-device", VLC_VAR_STRING | VLC_VAR_DOINHERIT );
var_Get( p_access, "pvr-device" , &val);
psz_device = val.psz_string;
}
}
#endif
+
return VLC_SUCCESS;
}
case ACCESS_GET_PTS_DELAY:
pi_64 = (int64_t*)va_arg( args, int64_t * );
- *pi_64 = 1000000;
+ *pi_64 = (int64_t)var_GetInteger( p_access, "pvr-caching" ) * I64C(1000);
break;
/* */