code: def libvlc_media_list_remove_index(p_ml, i_pos):
      '''Remove media instance from media list on a position
      The L{libvlc_media_list_lock} should be held upon entering this function.
      @param p_ml: a media list instance.
      @param i_pos: position in array where to insert.
      @return: 0 on success, -1 if the list is read-only or the item was not found.
      '''
      f = _Cfunctions.get('libvlc_media_list_remove_index', None) or \
          _Cfunction('libvlc_media_list_remove_index', ((1,), (1,),), None,
                      ctypes.c_int, MediaList, ctypes.c_int)
      return f(p_ml, i_posf libvlc_media_list_remove_index(p_ml, i_pos):
      '''Remove media instance from media list on a position
      The L{libvlc_media_list_lock} should be held upon entering this function.
      @param p_ml: a media list instance.
      @param i_pos: position in array where to insert.
      @return: 0 on success, -1 if the list is read-only or the item was not found.
      '''
      f = _Cfunctions.get('libvlc_media_list_remove_index', None) or \
          _Cfunction('libvlc_media_list_remove_index', ((1,), (1,),), None,
                      ctypes.c_int, MediaList, ctypes.c_int)
      return f(p_ml, i_pos)
docs: Remove media instance from media list on a position
      The L{libvlc_media_list_lock} should be held upon entering this function.
      @param p_ml: a media list instance.
      @param i_pos: position in array where to insert.
      @return: 0 on success, -1 if the list is read-only or the item was not found.