This means the disc is either damaged or displaced.
More info would be helpful. Either way, the goal of treatment is to decompress the joint and allow jaw closure along an optimized trajectory. If the disc is displaced, enough space can be developed with a bite appliance, called an orthosis, that the disc can return to and maintain its position. Try that before considering surgery.