
    i                     >    d dl mZmZmZ eeedd                     Zy)    )apply_to_audioapply_to_maskrequires_durationNc                 x      j                   fd      }|r| j                  z  }|r|j                  |      }|S )ak  
    Returns a clip that plays the current clip in an infinite loop.
    Ideal for clips coming from gifs.
    
    Parameters
    ------------
    n
      Number of times the clip should be played. If `None` the
      the clip will loop indefinitely (i.e. with no set duration).

    duration
      Total duration of the clip. Can be specified instead of n.
    c                 "    | j                   z  S )N)duration)tselfs    S/var/www/html/eduruby.in/venv/lib/python3.12/site-packages/moviepy/video/fx/loop.py<lambda>zloop.<locals>.<lambda>   s    A$5     )fl_timer   set_duration)r
   nr   results   `   r   loopr      s<    " \\56FT]]?$$X.Mr   )NN)moviepy.decoratorsr   r   r   r    r   r   <module>r      s/    O O    r   